Files
rtems/scripts/rtemsdoc/mkspec.in
Ralf Corsepius 59292fe9af 2003-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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}.
2003-01-31 06:22:09 +00:00

52 lines
822 B
Bash

#! /bin/sh
RTEMS_DIR=`dirname $0`/@top_srcdir@
PACKAGE_BUGREPORT=@PACKAGE_BUGREPORT@
CFG=../setup.cache
usage()
{
echo "$0 [options]"
echo " options:"
echo " -cfg <setup.cache>"
echo " -o <rpm-spec-dir>"
exit 1 ;
}
specsrc=${RTEMS_DIR}/rtemsdoc/rtemsdoc.spec.in
while test $# -ge 2; do
case $1 in
-cfg)
shift
CFG=$1
shift
;;
-o)
shift
dst=$1
shift
;;
-*)
echo "invalid option $1";
usage
;;
esac
done
if test ! $# -eq 0;
then
echo "Invalid number of arguments" >&2
usage >&2
fi
. ./$CFG
sed -e "s%@PACKAGE_BUGREPORT\@%@PACKAGE_BUGREPORT@%g" \
-e "s%@rtems_rpm_release\@%${rtems_rpm_release}%g" \
-e "s%@rtems_version\@%${rtems_version}%g" \
-e "s%@rtems_rpm_version\@%${rtems_rpm_version}%g" \
-e "s,@rpm_build_root\@,${rpm_build_root},g" \
< ${specsrc}