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

36 lines
771 B
Bash
Raw Normal View History

#!/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 [ -e $BOOTDISKS/current/$DOCDIR ] ; then
DOCS=$BOOTDISKS/current/$DOCDIR
else
echo "WARNING: Using woody bootdisk documentation"
DOCS=$MIRROR/dists/woody/main/disks-$ARCH/current/$DOCDIR
fi
# Put the install documentation in /install
cd $DOCS
mkdir -p $DIR/install/$DOCDIR
if cp -a * $DIR/install/$DOCDIR/ ; then
2002-10-11 09:51:24 +00:00
ln -f install.en.html $DIR/install/$DOCDIR/index.html
else
echo "ERROR: Unable to copy boot-floppies documentation to CD."
fi
# Put the boot-disk documentation in /doc too
mkdir -p $DIR/doc/install
cd $DIR/doc/install
for file in ../../install/$DOCDIR/*.{html,txt}
do
ln $file
done