~xubuntu-dev/livecd-rootfs/xubuntu-base

« back to all changes in this revision

Viewing changes to BuildLiveCD

  • Committer: Colin Watson
  • Date: 2013-07-23 14:45:15 UTC
  • Revision ID: cjwatson@canonical.com-20130723144515-ayv5rwac8t9qzi66
Remove all vestiges of livecd.sh and ubuntu-touch-android.sh.
Requiescant in pace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
fi
28
28
ARCH=$(dpkg --print-architecture)
29
29
SUBARCH=""
30
 
SUBARCHARG=""
31
30
NEWSUITE="precise"
32
31
SUITES=""
33
32
PROPOSED=""
35
34
LIVE_BUILD=false
36
35
UBUNTU_DEFAULTS_LOCALE=""
37
36
 
38
 
while getopts :A:s:r:d:f:pa:lu:t: name; do case $name in
 
37
while getopts :A:s:r:d:f:plu:t: name; do case $name in
39
38
    A)  ARCH="$OPTARG";;
40
39
    s)  SUBARCH="$OPTARG";;
41
40
    r)  SUBPROJECT="$OPTARG";;
42
41
    d)  NEWSUITE="$OPTARG";;
43
42
    f)  IMAGEFORMAT="$OPTARG";;
44
43
    p)  PROPOSED="-p";;
45
 
    a)  APT_SOURCE="-A $OPTARG";;
46
44
    l)  LIVE_BUILD=:;;
47
45
    u)  UBUNTU_DEFAULTS_LOCALE="$OPTARG";;
48
46
    t)  UBUNTU_TOUCH_ANDROID="$OPTARG";;
49
47
esac; done;
50
48
shift $((OPTIND-1))
51
49
 
52
 
if [ -n "$SUBARCH" ]; then
53
 
    SUBARCHARG="-s$SUBARCH"
54
 
fi
55
 
 
56
50
for s in $NEWSUITE; do
57
51
    if [ -d build-${s}-live/chroot-${s} ]; then SUITES="$SUITES $s"; fi
58
52
done
62
56
for s in $SUITES; do
63
57
    case $s in
64
58
        dapper|edgy|feisty|gutsy|hardy)
65
 
            ARCHARG=""
66
59
            old_suite="yes"
67
60
            ;;
68
61
        *)
69
 
            ARCHARG="-a$ARCH"
70
62
            new_suite="yes"
71
63
            ;;
72
64
    esac
144
136
        COMMAND="PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} lb build"
145
137
    elif [ "$UBUNTU_DEFAULTS_LOCALE" ]; then
146
138
        COMMAND="ubuntu-defaults-image --locale ${UBUNTU_DEFAULTS_LOCALE} --arch ${ARCH} --release ${STE}"
147
 
    elif [ "$UBUNTU_TOUCH_ANDROID" ]; then
148
 
        COMMAND="/usr/sbin/ubuntu-touch-android.sh ${SUBARCH}"
149
139
    else
150
 
        COMMAND="/usr/sbin/livecd.sh ${SUBARCHARG} ${APT_SOURCE} ${PROPOSED} -d${STE} ${IMAGEFORMAT:+-f$IMAGEFORMAT} ${ARCHARG} ${IMAGEARG} ${FS}"
 
140
        echo "Must pass either -l or -u."
 
141
        exit 1
151
142
    fi
152
143
    if $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && eatmydata -- $COMMAND" >> ${LOG} 2>&1; then
153
144
        rm -f ${PUBDIR}current