debian-cd-clone/tools/sarge/installtools.sh

43 lines
1.0 KiB
Bash
Executable File

#!/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
if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
DOCS=$BOOTDISKS/current/$DOCDIR
else
echo "WARNING: Using sid bootdisk documentation"
DOCS=$MIRROR/dists/sid/main/installer-$ARCH/current/$DOCDIR
fi
# Put the install documentation in /install
if [ ! -d $DOCS ]; then
echo "ERROR: Unable to copy installer documentation to CD."
exit
fi
cd $DOCS
mkdir -p $DIR/install/$DOCDIR
if cp -a * $DIR/install/$DOCDIR/ ; then
ln -f $DIR/install/$DOCDIR/install.en.html $DIR/install/$DOCDIR/index.html
else
echo "ERROR: Unable to copy installer documentation to CD."
fi
# Put the installer documentation in /doc too
mkdir -p $DIR/doc/install
cd $DIR/doc/install
for file in ../../install/$DOCDIR/*.{html,txt}
do
ln $file
done
if [ -e ../../install/$DOCDIR/INSTALLATION-HOWTO ]; then
ln ../../install/$DOCDIR/INSTALLATION-HOWTO
fi
# FIXME: why does it have to be in two places?