148 DEFAULT_PKGSRVR=$PKGSRVR
149 DEFAULT_PKGPUBLISHER=$PKGPUBLISHER
150
151 case "$1" in
152 list)
153 list $2
154 exit
155 ;;
156
157 licenses)
158 licenses
159 exit
160 ;;
161
162 build)
163 shift
164 tobuild=$*
165 if [ -z "$tobuild" ] || [ "$tobuild" == "all" ]; then
166 batch_flag="-b"
167 for tgt in "${!fulltargets[@]}"; do
168 build $tgt
169 done
170 else
171 for tgt in $tobuild; do
172 build $tgt
173 done
174 fi
175 exit
176 ;;
177
178 *)
179 usage
180 ;;
181 esac
182
|
148 DEFAULT_PKGSRVR=$PKGSRVR
149 DEFAULT_PKGPUBLISHER=$PKGPUBLISHER
150
151 case "$1" in
152 list)
153 list $2
154 exit
155 ;;
156
157 licenses)
158 licenses
159 exit
160 ;;
161
162 build)
163 shift
164 tobuild=$*
165 if [ -z "$tobuild" ] || [ "$tobuild" == "all" ]; then
166 batch_flag="-b"
167 for tgt in "${!fulltargets[@]}"; do
168 # Uncomment the echo line if you want to see a
169 # one-package-per-line status of what's building in
170 # /tmp/debug.<PID>.
171 # echo "Target = $tgt" >> /tmp/debug.$$
172 build $tgt
173 done
174 else
175 for tgt in $tobuild; do
176 build $tgt
177 done
178 fi
179 exit
180 ;;
181
182 *)
183 usage
184 ;;
185 esac
186
|