summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-19 22:07:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-19 22:07:21 +0000
commit38118d35ec1bbc8d493232a36f1ca2e5c2615e79 (patch)
tree1a3a0e8e56136df69322a4b67b72ae60405df241 /scripts
parentab25407cccdebedd84524fd07c5e36e09a6d15f4 (diff)
downloadrtems-38118d35ec1bbc8d493232a36f1ca2e5c2615e79.tar.bz2
Now easier to modify version numbers in scripts.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/binutils.spec.in10
-rw-r--r--scripts/mkbinutilspec24
2 files changed, 20 insertions, 14 deletions
diff --git a/scripts/binutils.spec.in b/scripts/binutils.spec.in
index 4add94a993..2831653591 100644
--- a/scripts/binutils.spec.in
+++ b/scripts/binutils.spec.in
@@ -19,10 +19,10 @@ Provides: @target_alias@-binutils
Autoreqprov: on
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
-Version: @Version@
+Version: binutils-@binutils_version@
Summary: binutils for target @target_alias@
-Source0: binutils-990901.tar.gz
-Patch0: binutils-990901-rtems-19991015.diff
+Source0: binutils-@binutils_version@.tar.gz
+Patch0: binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
Buildroot: /tmp
# Patch:
@@ -37,7 +37,7 @@ Authors:
...
%prep
-# untar the sources inside @target_alias@-binutils-@Version@
+# untar the sources inside @target_alias@-binutils
%setup -c -n @target_alias@-binutils -a 0
%patch0 -p0
@@ -45,7 +45,7 @@ Authors:
%build
test -d build || mkdir build
( cd build
- ../binutils-990901/configure --target=@target_alias@ \
+ ../binutils-@binutils_version@/configure --target=@target_alias@ \
--verbose --prefix=/opt/rtems
test -d $RPM_BUILD_ROOT/opt \
diff --git a/scripts/mkbinutilspec b/scripts/mkbinutilspec
index 0849a15326..fa697a0d85 100644
--- a/scripts/mkbinutilspec
+++ b/scripts/mkbinutilspec
@@ -4,11 +4,15 @@
#
RTEMS_DIR=`dirname $0`
-RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
-sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
target_alias=$1
-release=0
+
+# RPM release number
+rpm_release=0
+
+# binutils version number
+binutils_version=990901
+binutils_patch_version=19991015
# Some linux distributions use /usr/src/packages
# redhat uses /usr/src/redhat
@@ -24,11 +28,13 @@ then
dst=/usr/src/SPECS;
fi
-sed -e "s%@Version@%${RTEMS_VERSION}%g" \
--e "s%@bsp@%${bsp}%g" \
--e "s%@Release@%${release}%g" \
--e "s%@target_alias@%${target_alias}%g" \
+specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
+
+sed -e "s%@Release@%${release}%g" \
+ -e "s%@target_alias@%${target_alias}%g" \
+ -e "s%@binutils_version@%${binutils_version}%g" \
+ -e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
< ${RTEMS_DIR}/binutils.spec.in \
-> ${dst}/$target_alias-binutils.spec
+> ${specfile}
-echo Generated ${dst}/$target_alias-binutils.spec.
+echo Generated ${specfile}.