1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/bash
# Install files in /install and some in /doc
set -e
# The location of the tree for CD#1, passed in
DIR=$1
if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
DOCDIR=doc
if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
DOCS=$BOOTDISKS/current/$DOCDIR
elif MANUALDEB="$($BASEDIR/tools/apt-selection cache show "installation-guide-$ARCH")"; then
MANUALDEB="$(echo "$MANUALDEB" | grep ^Filename | awk '{print $2}')"
else
echo "WARNING: Using $DI_CODENAME bootdisk documentation"
DOCS=$MIRROR/dists/$DI_CODENAME/main/installer-$ARCH/current/$DOCDIR
fi
# Put the install documentation in /doc/install
if [ "$DOCS" ] && [ -d "$DOCS" ]; then
cd $DOCS
mkdir -p $DIR/$DOCDIR/install
if ! cp -a * $DIR/$DOCDIR/install; then
echo "ERROR: Unable to copy installer documentation to CD."
fi
elif [ "$MANUALDEB" ]; then
mkdir -p "$DIR/$DOCDIR/install/tmp" "$DIR/$DOCDIR/install/manual"
ar p "$MIRROR/$MANUALDEB" data.tar.gz | tar xzf - -C "$DIR/$DOCDIR/install/tmp"
mv "$DIR/$DOCDIR/install/tmp/usr/share/doc/installation-guide-$ARCH"/* "$DIR/$DOCDIR/install/manual/"
rm -rf "$DIR/$DOCDIR/install/tmp"
# just keep the HTML version
rm -f "$DIR/$DOCDIR/install/manual/copyright" \
"$DIR/$DOCDIR/install/manual/changelog.gz" \
"$DIR/$DOCDIR/install/manual"/*/install.*.pdf* \
"$DIR/$DOCDIR/install/manual"/*/install.*.txt*
else
echo "ERROR: Unable to copy installer documentation to CD."
fi
fi
# Preseed files for special install types
mkdir -p $DIR/preseed
PRESEED_ROOT=$BASEDIR/data/$CODENAME/preseed
for preseed_dir in \
$PRESEED_ROOT $PRESEED_ROOT/$ARCH \
$PRESEED_ROOT/$PROJECT $PRESEED_ROOT/$PROJECT/$ARCH; do
[ -d "$preseed_dir" ] || continue
for file in $preseed_dir/*.seed; do
cp -a "$file" $DIR/preseed/
done
done
if [ "$CDIMAGE_DVD" = 1 ] && [ "$PROJECT" != ubuntu-server ]; then
# include server on normal DVDs
for preseed_dir in \
$PRESEED_ROOT/ubuntu-server $PRESEED_ROOT/ubuntu-server/$ARCH; do
[ -d "$preseed_dir" ] || continue
for file in $preseed_dir/*.seed; do
cp -a "$file" $DIR/preseed/
done
done
fi
|