~ubuntu-branches/ubuntu/trusty/uck/trusty

« back to all changes in this revision

Viewing changes to uck-gui

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-04-05 17:44:59 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110405174459-k4n0994o6o7p3bif
Tags: 2.4.4-0ubuntu1
New upstream release (FFe granted LP: #751078).

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                WAIT_BEFORE_EXIT=1;;
48
48
        -m|--mount)
49
49
                USE_MOUNT=-m;;
50
 
        -*)     echo "Unexpected argument: $1" >&2; exit 1;;
 
50
        -*)     echo "Unexpected argument: $1" >&2
 
51
                echo "Usage: $0 [--wait-before-exit] [-m] [remaster_home]" >&2
 
52
                exit 1;;
51
53
        *)      break;;
52
54
        esac
53
55
        shift
75
77
        VERSION=`cat /usr/lib/uck/VERSION`
76
78
fi
77
79
 
 
80
rel="`lsb_release -is` `lsb_release -rs`"
 
81
kernel=`uname -rm`
 
82
 
78
83
WELCOME_TEXT=`cat <<EOF
79
84
Welcome to Ubuntu Customization Kit $VERSION!
 
85
(Running on $rel, $kernel)
80
86
 
81
87
This tool lets you create Ubuntu live CDs in your language,
82
88
with all the necessary language packs preinstalled.
288
294
echo "$REMOVE_WIN32_FILES" >"$BUILD_DIR"/remove_win32_files
289
295
echo "yes" >"$BUILD_DIR"/clean_desktop_manifest
290
296
 
 
297
# Pass proxy variables around sudo to chroot environment
 
298
>"$BUILD_DIR"/environment
 
299
for var in `env | grep -i _proxy`
 
300
do
 
301
        name=`echo "$var" | sed 's/=.*//'`
 
302
        value=`echo "$var" | sed 's/[^=]*=//'`
 
303
        echo "export $name=\"$value\"" >>"$BUILD_DIR"/environment
 
304
done
 
305
 
291
306
if [ "$RUN_MANUAL_CUSTOMIZATIONS" = "yes" ] ; then
292
307
        echo "Creating X authentication cookie..."
293
308
        xauth extract - $DISPLAY > "$BUILD_DIR"/Xcookie || failure "Cannot create Xauthentication cookie in $BUILD_DIR/Xcookie, error=$?"
297
312
(
298
313
echo "Build ($0 $SAVED_ARGS) started at `date +'%Y-%m-%d %H:%M:%S'`"
299
314
export UCK_USERNAME="$USER"
300
 
sudo bash "$SCRIPTS_DIR"/uck-remaster $USE_MOUNT "$ISO_IMAGE" "$BUILD_DIR"
 
315
sudo bash "$SCRIPTS_DIR"/uck-remaster $USE_MOUNT "$ISO_IMAGE" "$BUILD_DIR" "$REMASTER_HOME"
301
316
RESULT=$?
302
317
 
303
318
if [ $RESULT -ne 0 ]; then