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].*//'`"
|
|
|
|
|
2005-06-04 19:31:27 +00:00
|
|
|
if [ "$OMIT_RELEASE_NOTES"x = ""x ] ; then
|
|
|
|
OMIT_RELEASE_NOTES=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$OMIT_MANUAL"x = ""x ] ; then
|
|
|
|
OMIT_MANUAL=0
|
|
|
|
fi
|
|
|
|
|
2000-06-16 23:42:50 +00:00
|
|
|
for i in $BDIR/*.packages; do
|
|
|
|
dir=${i%%.packages}
|
2002-12-14 13:02:07 -01:00
|
|
|
DISK=${dir##$BDIR/}
|
|
|
|
dir=$BDIR/CD$DISK
|
2002-07-11 22:01:44 +00:00
|
|
|
cp -pdf $MIRROR/README* $dir/
|
2000-06-16 23:42:50 +00:00
|
|
|
|
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 \
|
2004-05-05 15:52:53 +00:00
|
|
|
$dir/README.pgp $dir/README.non-US ; \
|
2000-06-16 23:42:50 +00:00
|
|
|
|
|
|
|
cpp -traditional -undef -P -C -Wall -nostdinc -I$dir \
|
2005-03-03 01:03:45 -01:00
|
|
|
-D OMIT_MANUAL="$OMIT_MANUAL" \
|
2005-06-04 14:36:59 +00:00
|
|
|
-D OMIT_RELEASE_NOTES="$OMIT_RELEASE_NOTES" \
|
2000-06-16 23:42:50 +00:00
|
|
|
-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/ \
|
2005-03-03 01:03:45 -01:00
|
|
|
-D OMIT_MANUAL="$OMIT_MANUAL" \
|
2005-06-04 14:36:59 +00:00
|
|
|
-D OMIT_RELEASE_NOTES="$OMIT_RELEASE_NOTES" \
|
2000-06-16 23:42:50 +00:00
|
|
|
-D OUTPUThtml $BASEDIR/data/$CODENAME/README.html.in \
|
|
|
|
| sed -e 's/%%.//g' > $dir/README.html
|
|
|
|
|
|
|
|
rm -f $dir/README.diskdefines
|
|
|
|
mkdir -p $dir/pics
|
2002-07-11 22:01:44 +00:00
|
|
|
cp -p $BASEDIR/data/pics/*.* $dir/pics/
|
2000-06-16 23:42:50 +00:00
|
|
|
|
|
|
|
if [ -e $MIRROR/dists/$CODENAME/main/Release-Notes ]; then
|
2002-07-11 22:01:44 +00:00
|
|
|
cp -pf $MIRROR/dists/$CODENAME/main/Release-Notes $dir/
|
2000-06-16 23:42:50 +00:00
|
|
|
fi
|
|
|
|
|
2004-03-25 05:35:36 -01:00
|
|
|
if [ "$INSTALLER_CD" = "0" ]; then
|
|
|
|
if [ -e $MIRROR/dists/$CODENAME/Contents-$ARCH.gz ]; then
|
|
|
|
cp -pf $MIRROR/dists/$CODENAME/Contents-$ARCH.gz $dir/dists/$CODENAME/
|
|
|
|
else
|
|
|
|
echo "WARNING: there's no Contents-$ARCH.gz file for $CODENAME !"
|
|
|
|
fi
|
2000-06-16 23:42:50 +00:00
|
|
|
fi
|
|
|
|
|
2002-01-20 13:37:56 -01:00
|
|
|
if [ -n "$NONUS" ]
|
|
|
|
then
|
|
|
|
if [ -e $NONUS/dists/$CODENAME/non-US/Contents-$ARCH.gz ]; then
|
2002-07-11 22:01:44 +00:00
|
|
|
cp -pf $NONUS/dists/$CODENAME/non-US/Contents-$ARCH.gz \
|
2002-01-20 13:37:56 -01:00
|
|
|
$dir/dists/$CODENAME/non-US/
|
|
|
|
else
|
|
|
|
echo "WARNING: there's no Content-$ARCH.gz file for $CODENAME/non-US !"
|
|
|
|
fi
|
|
|
|
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
|
2002-07-11 22:01:44 +00:00
|
|
|
cp -pf $BASEDIR/data/$CODENAME/README.$ARCH $dir/
|
2000-06-16 23:42:50 +00:00
|
|
|
fi
|
|
|
|
|
2002-01-20 13:37:56 -01:00
|
|
|
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
|
2003-07-25 16:13:41 +00:00
|
|
|
todos $dir/README.1ST
|
2002-01-20 13:37:56 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e $BASEDIR/data/$CODENAME/README.multicd ]; then
|
2002-07-11 22:01:44 +00:00
|
|
|
cp -pf $BASEDIR/data/$CODENAME/README.multicd $dir/
|
2002-01-20 13:37:56 -01:00
|
|
|
fi
|
2000-06-16 23:42:50 +00:00
|
|
|
|
|
|
|
done
|