In other words, distros in IDMETA are NOT used when any of the
options --debian,--squeeze,--centos is used.
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
-
case $1 in
--debian=*)
- DEBIAN_DIST=$optarg
+ DEBIAN_DIST_A=$optarg
;;
--ubuntu=*)
- UBUNTU_DIST=$optarg
+ UBUNTU_DIST_A=$optarg
;;
--centos=*)
- CENTOS_DIST=$optarg
+ CENTOS_DIST_A=$optarg
;;
--upload)
upload=true
-*)
do_help=yes
;;
- esac
+ esac
shift
done
+if test $DEBIAN_DIST_A -o $UBUNTU_DIST_A -o $CENTOS_DIST_A; then
+ DEBIAN_DIST=$DEBIAN_DIST_A
+ UBUNTU_DIST=$UBUNTU_DIST_A
+ CENTOS_DIST=$CENTOS_DIST_A
+fi
if test "$do_help" = "yes"; then
usage 1 1>&2