projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quote strings to be empty tested
[git-tools-moved-to-github.git]
/
id-deb-build
/
id-pbuild.sh
diff --git
a/id-deb-build/id-pbuild.sh
b/id-deb-build/id-pbuild.sh
index
78a9d5d
..
8e131a6
100755
(executable)
--- a/
id-deb-build/id-pbuild.sh
+++ b/
id-deb-build/id-pbuild.sh
@@
-32,16
+32,15
@@
while test $# -gt 0; do
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
-
case $1 in
--debian=*)
case $1 in
--debian=*)
- DEBIAN_DIST=$optarg
+ DEBIAN_DIST_A=$optarg
;;
--ubuntu=*)
;;
--ubuntu=*)
- UBUNTU_DIST=$optarg
+ UBUNTU_DIST_A=$optarg
;;
--centos=*)
;;
--centos=*)
- CENTOS_DIST=$optarg
+ CENTOS_DIST_A=$optarg
;;
--upload)
upload=true
;;
--upload)
upload=true
@@
-55,10
+54,16
@@
while test $# -gt 0; do
-*)
do_help=yes
;;
-*)
do_help=yes
;;
- esac
+ esac
shift
done
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
fi
if test "$do_help" = "yes"; then
usage 1 1>&2
fi