scripts: Use get_os.sh for packaging

Use get_os.sh for determining which distribution and version packages
are built for, and upload accordingly.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2015-06-01 12:20:25 +00:00
commit 61a4706c76
3 changed files with 13 additions and 6 deletions

View file

@ -16,7 +16,7 @@ usage()
[ "$1" ] && exit $1
}
set -- `getopt P:T:V:S:N:hR:D: "$@"`
set -- `getopt P:T:V:S:N:hR:D:d: "$@"`
while [ "$1" != -- ]; do
case $1 in
@ -49,6 +49,9 @@ case $1 in
-P)
PROJECT="$2"
shift;;
-d)
DISTRIBUTION="$2"
shift;;
*)
usage 1;;
esac
@ -96,7 +99,8 @@ export \
SOURCE \
VERSION RELEASE V \
INSTALL_LOG \
FILTER_DEVEL
FILTER_DEVEL \
DISTRIBUTION
bash $MKSPEC_SH