As a last-minute step before building images, fill in the TOTALNUM
value in the README files in the root of each image.
This commit is contained in:
parent
cccbdd469f
commit
35743cde5f
|
@ -206,6 +206,8 @@ debian-cd (3.0.0) UNRELEASED; urgency=low
|
|||
[ Steve McIntyre ]
|
||||
* Gunzip the installation manual in .txt and .pdf format, so it's
|
||||
useful on other platforms too.
|
||||
* As a last-minute step before building images, fill in the TOTALNUM
|
||||
value in the README files in the root of each image.
|
||||
|
||||
-- Frans Pop <fjp@debian.org> Fri, 29 Dec 2006 02:14:05 +0100
|
||||
|
||||
|
|
|
@ -28,6 +28,23 @@ else
|
|||
FILES=$DIR/$CD.volid
|
||||
fi
|
||||
|
||||
NUM_CDS=`ls -1 $FILES | wc -l`
|
||||
|
||||
last_minute_update () {
|
||||
echo " Last-minute updates:"
|
||||
# Aaargh. Only now that we know how many CDs we're making can we
|
||||
# fill in the TOTALNUM number in README.{html,txt} (and therefore also
|
||||
# update the md5sum.txt entries for those files)
|
||||
for file in README.html README.txt
|
||||
do
|
||||
echo " $file"
|
||||
OLD_MD5=`md5sum ./$file`
|
||||
sed -i "s?TOTALNUM?$NUM_CDS?" $file
|
||||
NEW_MD5=`md5sum ./$file`
|
||||
sed -i "s?$OLD_MD5?$NEW_MD5?" md5sum.txt
|
||||
done
|
||||
}
|
||||
|
||||
for file in $FILES
|
||||
do
|
||||
dir=${file%%.volid}
|
||||
|
@ -35,6 +52,10 @@ do
|
|||
num=$n
|
||||
dir=$DIR/CD$n
|
||||
|
||||
cd $dir
|
||||
# Anything last-minute that can only be done now?
|
||||
last_minute_update
|
||||
|
||||
cd $dir/..
|
||||
|
||||
opts=`cat $DIR/$n.mkisofs_opts` || true
|
||||
|
|
Loading…
Reference in New Issue