summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-20 15:55:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-20 15:55:45 +0000
commit8ace612ede6e31f920c2fdf14a2ef786fe8383a9 (patch)
tree01ae2d386b104eed9feec3ab4b7a4f706df438da /scripts
parent1f339c247ffa6bebe19ff09ea32d38b717433ddd (diff)
downloadrtems-8ace612ede6e31f920c2fdf14a2ef786fe8383a9.tar.bz2
Made this more binutils like. :)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkgdbspec.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/mkgdbspec.in b/scripts/mkgdbspec.in
index a115620c28..2274670ed7 100644
--- a/scripts/mkgdbspec.in
+++ b/scripts/mkgdbspec.in
@@ -8,13 +8,13 @@ CFG=user.cfg
dst=@RPM_SPECSdir@
usage()
-
+{
echo "$0 [options] <target_alias>"
echo " options:"
echo " -cfg <user.cfg>"
echo " -o <rpm-spec-dir>"
exit 1 ;
-
+}
while test $# -ge 2; do
case $1 in
@@ -44,14 +44,18 @@ fi
# target to build for
target_alias=$1
+# RPM release number
rpm_release=0
+. ./$CFG
+
+specfile=${dst}/$target_alias-gdb.spec
sed -e "s%@Release@%${rpm_release}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@gdb_version@%${gdb_version}%g" \
-e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
< ${RTEMS_DIR}/gdb.spec.in \
-> ${dst}/$target_alias-gdb.spec
+> ${specfile}
case ${target} in
powerpc*)
@@ -62,6 +66,6 @@ case ${target} in
echo "/opt/rtems/bin/@target_alias@-sis"
;;
*) ;;
-esac >> ${dst}/$target_alias-gdb.spec
+esac >> ${specfile}
-echo Generated ${dst}/$target_alias-gdb.spec.
+echo Generated ${specfile}