source: rtems/scripts/rtemsdoc/mkspec.in @ 59292fe9

4.104.114.84.95
Last change on this file since 59292fe9 was 59292fe9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 06:22:09

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

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