summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.i386
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-09 19:14:27 +0000
committerMatt Wilson <msw@redhat.com>2001-07-09 19:14:27 +0000
commit1f36bdd62403d41fb4b94d94d953bd7656a1cd95 (patch)
treef872d6b5c2b263817412de9f3719276554f49d71 /scripts/mk-images.i386
parent1f8bcc23870d53653cd061abd75b57b41bc7ff1c (diff)
downloadanaconda-1f36bdd62403d41fb4b94d94d953bd7656a1cd95.tar.gz
anaconda-1f36bdd62403d41fb4b94d94d953bd7656a1cd95.tar.xz
anaconda-1f36bdd62403d41fb4b94d94d953bd7656a1cd95.zip
pass version number down into the mk-images script to automatically generate bootdisks with the final version number
Diffstat (limited to 'scripts/mk-images.i386')
-rw-r--r--scripts/mk-images.i38610
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/mk-images.i386 b/scripts/mk-images.i386
index 8501289a0..4b7de2a5f 100644
--- a/scripts/mk-images.i386
+++ b/scripts/mk-images.i386
@@ -25,7 +25,10 @@ prepareBootImage() {
sed -e "s/initrd.img/initrd.img lang=$BOOTDIR/g" < $MBD_BOOTTREE/syslinux.cfg > $MBD_BOOTTREE/syslinux.cf2
mv -f $MBD_BOOTTREE/syslinux.cf2 $MBD_BOOTTREE/syslinux.cfg
fi
- cp $BOOTDISKDIR/$BOOTLANG/*.msg $MBD_BOOTTREE
+ for file in $BOOTDISKDIR/$BOOTLANG/*.msg; do
+ filename=`basename $file`
+ sed -s "s/@VERSION@/$VERSION/g" $file > $MBD_BOOTTREE/$filename
+ done
if [ $? != 0 ]; then
echo $0: Failed to copy messages from $BOOTDISKDIR/$BOOTLANG to $MBD_BOOTTREE.
umount $MBD_BOOTTREE
@@ -33,7 +36,10 @@ prepareBootImage() {
exit 1
fi
else
- cp $BOOTDISKDIR/*.msg $MBD_BOOTTREE
+ for file in $BOOTDISKDIR/*.msg; do
+ filename=`basename $file`
+ sed -s "s/@VERSION@/$VERSION/g" $file > $MBD_BOOTTREE/$filename
+ done
if [ $? != 0 ]; then
echo $0: Failed to copy messages from $BOOTDISKDIR to $MBD_BOOTTREE.
umount $MBD_BOOTTREE