2005-05-05 16:15:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Install files in /install and some in /doc
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2005-06-10 21:45:45 +00:00
|
|
|
if [ "$RELEASE_NOTES_LOCATION"x = ""x ] ; then
|
|
|
|
export RELEASE_NOTES_LOCATION="http://www.debian.org/releases/etch"
|
|
|
|
fi
|
|
|
|
|
2005-05-05 16:15:44 +00:00
|
|
|
# The location of the tree for CD#1, passed in
|
|
|
|
DIR=$1
|
|
|
|
|
|
|
|
if [ "$OMIT_MANUAL" != 1 ]; then
|
|
|
|
DOCDIR=doc
|
2006-02-05 23:38:13 -01:00
|
|
|
MANTDIR=$TDIR/installguide
|
2005-05-05 16:15:44 +00:00
|
|
|
|
2006-02-05 23:38:13 -01:00
|
|
|
INSTALLGUIDE=$(zcat $MIRROR/dists/etch/main/binary-$ARCH//Packages.gz | \
|
|
|
|
sed -n "s/Filename: \(pool\/main\/i\/installation-guide\/installation-guide-$ARCH.*deb\)$/\1/p")
|
2005-05-05 16:15:44 +00:00
|
|
|
|
2006-02-05 23:38:13 -01:00
|
|
|
if [ -f "$MIRROR/$INSTALLGUIDE" ]; then
|
|
|
|
rm -rf $MANTDIR
|
|
|
|
# Extract documentation from package
|
|
|
|
dpkg -x $MIRROR/$INSTALLGUIDE $MANTDIR || true
|
|
|
|
|
|
|
|
if [ -d $MANTDIR/usr/share/doc/installation-guide-$ARCH/ ]; then
|
|
|
|
cd $MANTDIR/usr/share/doc/installation-guide-$ARCH
|
|
|
|
rm -f changelog* copyright
|
|
|
|
gunzip *.gz || true
|
|
|
|
|
2006-03-09 00:20:11 -01:00
|
|
|
mkdir -p $DIR/$DOCDIR/manual
|
|
|
|
if ! cp -a * $DIR/$DOCDIR/manual; then
|
2006-02-05 23:38:13 -01:00
|
|
|
echo "ERROR: Unable to copy installer documentation to CD."
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "ERROR: installlation-guide package not unpacked correctly."
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "ERROR: package installlation-guide-$ARCH not found."
|
2005-05-05 16:15:44 +00:00
|
|
|
fi
|
|
|
|
fi
|
2005-06-10 21:45:45 +00:00
|
|
|
|
|
|
|
if [ "$OMIT_RELEASE_NOTES" != 1 ]; then
|
|
|
|
RN=$DIR/doc/release-notes
|
|
|
|
mkdir -p $RN
|
|
|
|
cd $RN
|
|
|
|
echo "Downloading most recent release notes"
|
|
|
|
wget $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz
|
|
|
|
if [ -e release-notes-$ARCH.tar.gz ] ; then
|
|
|
|
tar xzvf release-notes-$ARCH.tar.gz
|
|
|
|
rm -f release-notes-$ARCH.tar.gz
|
|
|
|
rm -f */*.ps
|
|
|
|
else
|
|
|
|
echo "No release notes found at $RELEASE_NOTES_LOCATION/release-notes-$ARCH.tar.gz"
|
|
|
|
fi
|
|
|
|
fi
|