2000-06-16 23:42:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
BDIR=$TDIR/$CODENAME-$ARCH
|
|
|
|
ADIR=$APTTMP/$CODENAME-$ARCH
|
|
|
|
SDIR=$TDIR/$CODENAME-src
|
|
|
|
|
2000-08-12 22:44:53 +00:00
|
|
|
DEBMAINVER="`echo $DEBVERSION | sed -e 's/[ _r].*//'`"
|
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
for i in $BDIR/*.packages; do
|
|
|
|
dir=${i%%.packages}
|
|
|
|
dir=${dir##$BDIR/}
|
|
|
|
dir=$BDIR/CD$dir
|
|
|
|
cp -df $MIRROR/README* $dir/
|
|
|
|
|
2000-08-12 22:44:53 +00:00
|
|
|
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
|
2000-07-25 15:03:57 +00:00
|
|
|
fi
|
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
rm -f $dir/README $dir/README.1ST \
|
|
|
|
$dir/README.CD-manufacture $dir/README.multicd \
|
|
|
|
$dir/README.pgp ; \
|
|
|
|
|
|
|
|
cpp -traditional -undef -P -C -Wall -nostdinc -I$dir \
|
|
|
|
-D OUTPUTtext $BASEDIR/data/$CODENAME/README.html.in \
|
|
|
|
| sed -e 's/%%.//g' > $dir/README.html
|
|
|
|
|
|
|
|
lynx -dump -force_html $dir/README.html | todos \
|
|
|
|
> $dir/README.txt ; \
|
|
|
|
|
|
|
|
cpp -traditional -undef -P -C -Wall -nostdinc -I $dir/ \
|
|
|
|
-D OUTPUThtml $BASEDIR/data/$CODENAME/README.html.in \
|
|
|
|
| sed -e 's/%%.//g' > $dir/README.html
|
|
|
|
|
|
|
|
rm -f $dir/README.diskdefines
|
|
|
|
mkdir -p $dir/pics
|
2001-04-24 20:15:56 +00:00
|
|
|
cp $BASEDIR/data/pics/*.* $dir/pics/
|
2000-06-16 23:42:50 +00:00
|
|
|
|
|
|
|
if [ -e $MIRROR/dists/$CODENAME/main/Release-Notes ]; then
|
|
|
|
cp -f $MIRROR/dists/$CODENAME/main/Release-Notes $dir/
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -f $MIRROR/dists/$CODENAME/Contents-$ARCH.gz \
|
|
|
|
$dir/dists/$CODENAME/; \
|
|
|
|
|
2000-10-08 19:31:12 +00:00
|
|
|
|
|
|
|
# 08-oct-00 if != woody copy Contents-$ARCH
|
|
|
|
# Contents-$ARCH missing on non-US woody -- jwest
|
|
|
|
if [ $CODENAME != "woody" ]; then
|
|
|
|
if [ -n "$NONUS" ]; then
|
|
|
|
cp -f $NONUS/dists/$CODENAME/non-US/Contents-$ARCH.gz \
|
|
|
|
$dir/dists/$CODENAME/non-US/
|
|
|
|
fi
|
2000-06-16 23:42:50 +00:00
|
|
|
fi
|
|
|
|
|
2000-10-08 19:31:12 +00:00
|
|
|
|
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
if [ -e $BASEDIR/data/$CODENAME/README.$ARCH ]; then
|
|
|
|
cp -f $BASEDIR/data/$CODENAME/README.$ARCH $dir/
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e $BASEDIR/data/$CODENAME/README.1ST.$ARCH ]; then
|
|
|
|
rm -f $dir/README.1ST
|
|
|
|
echo "This disc is labelled :" > $dir/README.1ST
|
|
|
|
cat $dir/.disk/info >>$dir/README.1ST
|
|
|
|
echo -e "\n\n" >>$dir/README.1ST
|
|
|
|
cat $BASEDIR/data/$CODENAME/README.1ST.$ARCH > $dir/README.1ST
|
|
|
|
todos $dir/README.1ST;
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e $BASEDIR/data/$CODENAME/README.multicd ]; then
|
|
|
|
cp -f $BASEDIR/data/$CODENAME/README.multicd $dir/
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|