You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2013/09/18 13:36:35 UTC
[2/3] git commit: updated refs/heads/nonoss-to-noredist to 86bef8b
Update packaging script with the new noredist flag
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8f01d20a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8f01d20a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8f01d20a
Branch: refs/heads/nonoss-to-noredist
Commit: 8f01d20a5ae083849c9e9b12e294efb4542733d5
Parents: 13e8b59
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Wed Sep 18 19:34:32 2013 +0800
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Wed Sep 18 19:36:09 2013 +0800
----------------------------------------------------------------------
packaging/centos63/package.sh | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8f01d20a/packaging/centos63/package.sh
----------------------------------------------------------------------
diff --git a/packaging/centos63/package.sh b/packaging/centos63/package.sh
index f30a0e7..8337944 100755
--- a/packaging/centos63/package.sh
+++ b/packaging/centos63/package.sh
@@ -18,14 +18,14 @@
function usage() {
echo ""
- echo "usage: ./package.sh [-p|--pack] [-h|--help] [ARGS]"
+ echo "usage: ./package.sh [-p|e-pack] [-h|--help] [ARGS]"
echo ""
echo "The commonly used Arguments are:"
- echo "oss|OSS To package OSS specific"
- echo "nonoss|NONOSS To package NONOSS specific"
+ echo "oss|OSS To package OSS specific"
+ echo "noredist|NOREDIST To package with no redistributable libraries"
echo ""
echo "Examples: ./package.sh -p|--pack oss|OSS"
- echo " ./package.sh -p|--pack nonoss|NONOSS"
+ echo " ./package.sh -p|--pack noredist|NOREDIST"
echo " ./package.sh (Default OSS)"
exit 1
}
@@ -114,6 +114,7 @@ elif [ $# -gt 0 ] ; then
eval set -- "$ARGS"
while [ $# -gt 0 ] ; do
+ echo $1
case "$1" in
-h | --help)
usage
@@ -124,7 +125,7 @@ elif [ $# -gt 0 ] ; then
packageval=$2
if [ "$packageval" == "oss" -o "$packageval" == "OSS" ] ; then
defaultPackaging
- elif [ "$packageval" == "nonoss" -o "$packageval" == "NONOSS" ] ; then
+ elif [ "$packageval" == "noredist" -o "$packageval" == "NOREDIST" ] ; then
packaging
else
echo "Error: Incorrect value provided in package.sh script, Please see help ./package.sh --help|-h for more details."
@@ -136,19 +137,8 @@ elif [ $# -gt 0 ] ; then
usage
exit 1
;;
- --)
- echo "Unrecognized option..."
- usage
- exit 1
- ;;
- -*)
- echo "Unrecognized option..."
- usage
- exit 1
- ;;
*)
shift
- break
;;
esac
done