From: Jose V Beneyto Date: Wed, 24 Feb 2010 22:38:58 +0000 (+0100) Subject: fixed debug lines in pkgmk-cross X-Git-Url: http://gitweb/?a=commitdiff_plain;h=ab4e8070fd71abf676518a2e5fddee35095b6cd2;p=pkgutils-cross.git fixed debug lines in pkgmk-cross --- diff --git a/pkgmk-cross b/pkgmk-cross index 8c75b0f..49d0065 100755 --- a/pkgmk-cross +++ b/pkgmk-cross @@ -1,7 +1,6 @@ #!/bin/bash TOPDIR="$(cd $(dirname $(which $0)); pwd)" -echo "TOP: $TOPDIR" TMP_CONF="$(mktemp)" PKGMK=$TOPDIR/src/pkgmk @@ -10,11 +9,12 @@ PKGMK_ARGS="" PKGMK_OPTIMIZE="" while [ "$1" ]; do - echo "arg: $1" - case $1 in - -o) PKGMK_OPTIMIZE="$2" ;; - *) PKGMK_ARGS="$PKGMK_ARGS $1" ;; - esac + if [ "$1" != "-o" ]; then + PKGMK_ARGS="$PKGMK_ARGS $1" + else + shift + PKGMK_OPTIMIZE="$1" + fi shift done @@ -29,8 +29,8 @@ if [ ! -z "$PKGMK_OPTIMIZE" ]; then fi fi -echo "$PKGMK -cf $PKGMK_CONF $PKGMK_ARGS" +$PKGMK -cf $PKGMK_CONF $PKGMK_ARGS -#rm -f $TMP_CONF +rm -f $TMP_CONF # End of file