|
|
@ -45,12 +45,12 @@ root="" |
|
|
|
id='' |
|
|
|
|
|
|
|
stagelevel=9 |
|
|
|
this_is_the_2nd_run=0 |
|
|
|
|
|
|
|
# |
|
|
|
# ---- Functions |
|
|
|
# |
|
|
|
|
|
|
|
. scripts/functions |
|
|
|
|
|
|
|
help_msg() { |
|
|
|
spacer=" " |
|
|
@ -73,7 +73,10 @@ help_msg() { |
|
|
|
# ---- Parse options + config and make Build-Pkg sub-calls |
|
|
|
# |
|
|
|
|
|
|
|
this_is_the_2nd_run=0 |
|
|
|
|
|
|
|
if [ -z "$1" ] ; then |
|
|
|
help_msg ; exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
while [ "$1" ] ; do |
|
|
|
case "$1" in |
|
|
@ -99,6 +102,12 @@ while [ "$1" ] ; do |
|
|
|
shift |
|
|
|
done |
|
|
|
|
|
|
|
# check if arguments are left as package names |
|
|
|
if [ $# = 0 ] ; then |
|
|
|
help_msg ; exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
. ./scripts/functions |
|
|
|
. ./scripts/parse-config |
|
|
|
|
|
|
|
if [ -z "$root" -a $stagelevel -le 1 ] || \ |
|
|
@ -120,9 +129,8 @@ fi |
|
|
|
|
|
|
|
./scripts/Build-Tools -$stagelevel -cfg $config || exit 1 |
|
|
|
|
|
|
|
if [ -z "$1" ] ; then |
|
|
|
help_msg ; exit 1 |
|
|
|
elif [ "$2" ] ; then |
|
|
|
# more than one package are passed |
|
|
|
if [ $# -gt 1 ] ; then |
|
|
|
for x ; do |
|
|
|
if ! ./scripts/Build-Pkg $options $x && \ |
|
|
|
[ "$ROCKCFG_ABORT_ON_ERROR" = 1 ] ; then |
|
|
|