40 lines
1010 B
Bash
Executable File
40 lines
1010 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Install files in /install and some in /doc
|
|
# 26-dec-99 changes for i386 (2.2.x) bootdisks --jwest
|
|
# 11-mar-00 added sparc to boot-disk documentation test --jwest
|
|
# 30-jun-00 synced with potato updates --jwest
|
|
# 05-JUL-00 added CODENAME1 and test for existance of woody bootdisks --jwest
|
|
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 "Using potato bootdisk documentation"
|
|
DOCS=$MIRROR/dists/potato/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
|
|
ln -sf 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 -s $file
|
|
done
|
|
|