source: rtems/scripts/rtemsdoc/mkspec.in @ 2dae735f

4.104.114.84.95
Last change on this file since 2dae735f was 2dae735f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2003 at 8:13:55 AM

2003-01-26 Ralf Corsepius <corsepiu@…>

  • rtemsdoc/Makefile.am: New.
  • rtemsdoc/mkspec.in: New.
  • rtemsdoc/rtemsdoc.spec.in: New.
  • rtemsdoc/supplement.add.in: New.
  • rtemsdoc/templ.add.in: New.
  • Property mode set to 100644
File size: 876 bytes
Line 
1#! /bin/sh
2
3RTEMS_DIR=`dirname $0`/@top_srcdir@
4PACKAGE_BUGREPORT=@PACKAGE_BUGREPORT@
5
6CFG=../setup.cache
7exe_ext=@EXEEXT@
8
9usage()
10{
11  echo "$0 [options]"
12  echo "  options:"
13  echo "    -cfg <setup.cache>"
14  echo "    -o <rpm-spec-dir>"
15  exit 1 ;
16}
17
18specsrc=${RTEMS_DIR}/rtemsdoc/rtemsdoc.spec.in
19
20while test $# -ge 2; do
21case $1 in
22-cfg)
23  shift
24  CFG=$1
25  shift
26  ;;
27-o)
28  shift
29  dst=$1
30  shift
31  ;;
32-*)
33  echo "invalid option $1";
34  usage
35  ;;
36esac
37done
38
39if test ! $# -eq 0;
40then
41  echo "Invalid number of arguments" >&2
42  usage >&2
43fi
44
45. ./$CFG
46
47sed -e "s%@PACKAGE_BUGREPORT\@%@PACKAGE_BUGREPORT@%g" \
48    -e "s%@rtems_rpm_release\@%${rtems_rpm_release}%g" \
49    -e "s%@rtems_version\@%${rtems_version}%g" \
50    -e "s%@rtems_rpm_version\@%${rtems_rpm_version}%g" \
51    -e "s,@rpm_build_root\@,${rpm_build_root},g" \
52    -e "s%@exe_ext\@%${exe_ext}%g" \
53< ${specsrc}
Note: See TracBrowser for help on using the repository browser.