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

37 lines
870 B
Bash
Raw Normal View History

#!/bin/bash
# Install files in /install and some in /doc
1999-12-27 16:39:40 -01:00
# 26-dec-99 changes for i386 (2.2.x) bootdisks --jwest
# 11-mar-00 added sparc to boot-disk documentation test --jwest
set -e
BDIR=$TDIR/$CODENAME-$ARCH
# boot-disk location for documentation is inconsistant --jwest
if [ "$ARCH" = "powerpc" ]; then
DOCDIR="docs"
elif [ "$ARCH" = "i386" ]; then
DOCDIR="doc"
elif [ "$ARCH" = "sparc" ]; then
1999-12-27 16:39:40 -01:00
DOCDIR="doc"
else
DOCDIR="documentation"
fi
# Put the install documentation in /install
cd $BDIR/1/dists/$CODENAME/main/disks-$ARCH/current/$DOCDIR
mkdir $BDIR/1/install/$DOCDIR
cp *.{html,txt} $BDIR/1/install/$DOCDIR/
2000-04-03 19:29:40 +00:00
ln -sf install.en.html $BDIR/1/install/$DOCDIR/index.html
# Put the boot-disk documentation in /doc too
mkdir $BDIR/1/doc/install
cd $BDIR/1/doc/install
for file in ../../install/$DOCDIR/*.{html,txt}
do
ln -s $file
done