Get correct dedication.txt regardless of point release number.

This commit is contained in:
Anne Bezemer 2000-08-12 22:44:53 +00:00
parent 4fe2a90a93
commit 6b1816998c
1 changed files with 5 additions and 3 deletions

View File

@ -7,15 +7,17 @@ BDIR=$TDIR/$CODENAME-$ARCH
ADIR=$APTTMP/$CODENAME-$ARCH
SDIR=$TDIR/$CODENAME-src
DEBMAINVER="`echo $DEBVERSION | sed -e 's/[ _r].*//'`"
for i in $BDIR/*.packages; do
dir=${i%%.packages}
dir=${dir##$BDIR/}
dir=$BDIR/CD$dir
cp -df $MIRROR/README* $dir/
if [ -f $dir/doc/dedication-$DEBVERSION.txt ]; then
mv $dir/doc/dedication-$DEBVERSION.txt $dir/dedication.txt
ln -s ../dedication.txt $dir/doc/dedication-$DEBVERSION.txt
if [ -f $dir/doc/dedication-$DEBMAINVER.txt ]; then
mv $dir/doc/dedication-$DEBMAINVER.txt $dir/dedication.txt
ln -s ../dedication.txt $dir/doc/dedication-$DEBMAINVER.txt
fi
rm -f $dir/README $dir/README.1ST \