~tsimonq2/debian-cd/lubuntu-cosmic-changes

« back to all changes in this revision

Viewing changes to tools/jaunty/installtools.sh

  • Committer: Colin Watson
  • Date: 2008-10-31 12:33:26 UTC
  • Revision ID: cjwatson@canonical.com-20081031123326-lati74gj8qvgw4b6
add CONF.sh bits for jaunty; copy intrepid -> jaunty elsewhere

Show diffs side-by-side

added added

removed removed

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