2002-10-10 12:56:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Install files in /install and some in /doc
|
2005-03-03 01:03:45 -01:00
|
|
|
|
2002-10-10 12:56:48 +00:00
|
|
|
set -e
|
|
|
|
|
2005-06-04 14:36:59 +00:00
|
|
|
if [ "$RELEASE_NOTES_LOCATION"x = ""x ] ; then
|
|
|
|
export RELEASE_NOTES_LOCATION="http://www.debian.org/releases/sarge"
|
|
|
|
fi
|
|
|
|
|
2002-10-10 12:56:48 +00:00
|
|
|
# The location of the tree for CD#1, passed in
|
|
|
|
DIR=$1
|
|
|
|
|
2005-03-03 01:03:45 -01:00
|
|
|
if [ "$OMIT_MANUAL" != 1 ]; then
|
|
|
|
DOCDIR=doc
|
2002-10-10 12:56:48 +00:00
|
|
|
|
2005-03-03 01:03:45 -01:00
|
|
|
if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
|
|
|
|
DOCS=$BOOTDISKS/current/$DOCDIR
|
|
|
|
else
|
|
|
|
echo "WARNING: Using $DI_CODENAME bootdisk documentation"
|
|
|
|
DOCS=$MIRROR/dists/$DI_CODENAME/main/installer-$ARCH/current/$DOCDIR
|
|
|
|
fi
|
2002-10-10 12:56:48 +00:00
|
|
|
|
2005-03-03 01:03:45 -01:00
|
|
|
# Put the install documentation in /doc/install
|
|
|
|
if [ ! -d $DOCS ]; then
|
|
|
|
echo "ERROR: Unable to copy installer documentation to CD."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
cd $DOCS
|
|
|
|
mkdir -p $DIR/$DOCDIR/install
|
|
|
|
if ! cp -a * $DIR/$DOCDIR/install; then
|
|
|
|
echo "ERROR: Unable to copy installer documentation to CD."
|
|
|
|
fi
|
2002-10-10 12:56:48 +00:00
|
|
|
fi
|
2005-06-04 14:36:59 +00:00
|
|
|
|
|
|
|
if [ "$OMIT_RELEASE_NOTES" != 1 ]; then
|
|
|
|
RN=$DIR/doc/release-notes
|
|
|
|
mkdir -p $RN
|
|
|
|
cd $RN
|
|
|
|
echo "Downloading most recent release notes for sarge"
|
|
|
|
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
|