2000-02-19 16:52:52 -01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Install files in /install and some in /doc
|
|
|
|
# 26-dec-99 changes for i386 (2.2.x) bootdisks --jwest
|
2000-07-06 00:40:50 +00:00
|
|
|
# 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
|
2000-02-19 16:52:52 -01:00
|
|
|
set -e
|
|
|
|
|
2000-07-06 00:40:50 +00:00
|
|
|
# The location of the tree for CD#1, passed in
|
|
|
|
DIR=$1
|
|
|
|
|
|
|
|
DOCDIR=doc
|
2000-02-19 16:52:52 -01:00
|
|
|
|
2001-11-06 09:23:36 -01:00
|
|
|
if [ -e $BOOTDISKS/current/$DOCDIR ] ; then
|
|
|
|
DOCS=$BOOTDISKS/current/$DOCDIR
|
2000-02-19 16:52:52 -01:00
|
|
|
else
|
2000-07-06 01:04:10 +00:00
|
|
|
echo "Using potato bootdisk documentation"
|
2001-11-06 09:23:36 -01:00
|
|
|
DOCS=$MIRROR/dists/potato/main/disks-$ARCH/current/$DOCDIR
|
2000-02-19 16:52:52 -01:00
|
|
|
fi
|
|
|
|
|
2000-07-06 00:40:50 +00:00
|
|
|
|
2000-02-19 16:52:52 -01:00
|
|
|
# Put the install documentation in /install
|
2001-11-06 09:23:36 -01:00
|
|
|
cd $DOCS
|
2001-06-10 14:56:26 +00:00
|
|
|
mkdir -p $DIR/install/$DOCDIR
|
2002-07-11 22:01:44 +00:00
|
|
|
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
|
2000-02-19 16:52:52 -01:00
|
|
|
|
|
|
|
# Put the boot-disk documentation in /doc too
|
2001-06-10 14:56:26 +00:00
|
|
|
mkdir -p $DIR/doc/install
|
2000-07-06 00:40:50 +00:00
|
|
|
cd $DIR/doc/install
|
2000-02-19 16:52:52 -01:00
|
|
|
for file in ../../install/$DOCDIR/*.{html,txt}
|
|
|
|
do
|
|
|
|
ln -s $file
|
|
|
|
done
|
|
|
|
|