~franz-hsieh/live-build/lb-sg-2.x.columbia

« back to all changes in this revision

Viewing changes to helpers/config

  • Committer: Daniel Baumann
  • Date: 2011-03-09 18:17:05 UTC
  • Revision ID: daniel@debian.org-20110309181705-hg63kztvk618a5q4
Adding -r, --repositories option to select preconfigured third-party repositories more easily.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
\t    [-p|--packages-lists FILE]\n\
110
110
\t    [--packages PACKAGE|\"PACKAGES\"]\n\
111
111
\t    [--quiet]\n\
 
112
\t    [-r|--repositories REPOSITORY|\"REPOSITORIES\"]\n\
112
113
\t    [--root-command sudo]\n\
113
114
\t    [--use-fakeroot true|false]\n\
114
115
\t    [--archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\
135
136
        LONG_OPTIONS="apt:,apt-ftp-proxy:,apt-http-proxy:,apt-pdiffs:,apt-options:,aptitute-options:,
136
137
                apt-pipeline:,apt-recommends:,apt-secure:,bootstrap:,cache:,cache-indices:,cache-packages:,
137
138
                cache-stages:,debconf-frontend:,debconf-nowarnings:,debconf-priority:,dump,
138
 
                initramfs:,fdisk:,losetup:,mode:,root-command:,use-fakeroot:,tasksel:,includes:,
 
139
                initramfs:,fdisk:,losetup:,mode:,repositories:,root-command:,use-fakeroot:,tasksel:,includes:,
139
140
                templates:,architecture:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,clean,
140
141
                distribution:,mirror-bootstrap:,mirror-chroot:,mirror-chroot-security:,mirror-chroot-volatile:,mirror-binary:,
141
142
                mirror-binary-security:,mirror-binary-volatile:,mirror-debian-installer:,archive-areas:,chroot-filesystem:,exposed-root:,virtual-root-size:,
151
152
                help,ignore-system-defaults,quiet,usage,verbose,version"
152
153
        # Remove spaces added by indentation
153
154
        LONG_OPTIONS="$(echo ${LONG_OPTIONS} | tr -d ' ')"
154
 
        ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name=${PROGRAM} --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")"
 
155
        ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name=${PROGRAM} --options a:f:d:m:l:k:p:b:e:r:s:c:huv --shell sh -- "${@}")"
155
156
 
156
157
        if [ "${?}" != "0" ]
157
158
        then
330
331
                                shift 2
331
332
                                ;;
332
333
 
 
334
                        -r|--repositories)
 
335
                                LH_REPOSITORIES="${2}"
 
336
                                shift 2
 
337
                                ;;
 
338
 
333
339
                        --root-command)
334
340
                                LH_ROOT_COMMAND="${2}"
335
341
                                shift 2
1072
1078
# (Default: autodetected)
1073
1079
LH_LINUX_PACKAGES="${LH_LINUX_PACKAGES}"
1074
1080
 
 
1081
# \$LH_REPOSITORIES: enable available third-party repositories
 
1082
# (Default: empty)
 
1083
LH_REPOSITORIES="${LH_REPOSITORIES}"
 
1084
 
1075
1085
# \$LH_PACKAGES: set packages to install
1076
1086
# (Default: empty)
1077
1087
LH_PACKAGES="${LH_PACKAGES}"