2002-10-10 12:56:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Install files in /install and some in /doc
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# The location of the tree for CD#1, passed in
|
|
|
|
DIR=$1
|
|
|
|
|
|
|
|
DOCDIR=doc
|
|
|
|
|
2003-07-24 17:41:53 +00:00
|
|
|
if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
|
2002-10-10 12:56:48 +00:00
|
|
|
DOCS=$BOOTDISKS/current/$DOCDIR
|
|
|
|
else
|
2003-12-24 17:11:33 -01:00
|
|
|
echo "WARNING: Using sid bootdisk documentation"
|
|
|
|
DOCS=$MIRROR/dists/sid/main/installer-$ARCH/current/$DOCDIR
|
2002-10-10 12:56:48 +00:00
|
|
|
fi
|
|
|
|
|
2004-03-26 17:07:27 -01:00
|
|
|
# Put the install documentation in /doc/install
|
2003-12-24 19:14:55 -01:00
|
|
|
if [ ! -d $DOCS ]; then
|
|
|
|
echo "ERROR: Unable to copy installer documentation to CD."
|
|
|
|
exit
|
|
|
|
fi
|
2002-10-10 12:56:48 +00:00
|
|
|
cd $DOCS
|
2004-03-26 17:07:27 -01:00
|
|
|
mkdir -p $DIR/$DOCDIR/install
|
|
|
|
if ! cp -a * $DIR/$DOCDIR/install; then
|
2003-12-24 01:49:26 -01:00
|
|
|
echo "ERROR: Unable to copy installer documentation to CD."
|
2002-10-10 12:56:48 +00:00
|
|
|
fi
|