Skip to content

Commit 4d461d5

Browse files
committed
Update packaging script with the new noredist flag
1 parent 7f24814 commit 4d461d5

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

‎packaging/centos63/package.sh‎

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
function usage() {
2020
echo ""
21-
echo "usage: ./package.sh [-p|--pack] [-h|--help] [ARGS]"
21+
echo "usage: ./package.sh [-p|e-pack] [-h|--help] [ARGS]"
2222
echo ""
2323
echo "The commonly used Arguments are:"
24-
echo "oss|OSS To package OSS specific"
25-
echo "nonoss|NONOSS To package NONOSS specific"
24+
echo "oss|OSS To package OSS specific"
25+
echo "noredist|NOREDIST To package with no redistributable libraries"
2626
echo ""
2727
echo "Examples: ./package.sh -p|--pack oss|OSS"
28-
echo " ./package.sh -p|--pack nonoss|NONOSS"
28+
echo " ./package.sh -p|--pack noredist|NOREDIST"
2929
echo " ./package.sh (Default OSS)"
3030
exit 1
3131
}
@@ -114,6 +114,7 @@ elif [ $# -gt 0 ] ; then
114114
eval set -- "$ARGS"
115115

116116
while [ $# -gt 0 ] ; do
117+
echo $1
117118
case "$1" in
118119
-h | --help)
119120
usage
@@ -124,7 +125,7 @@ elif [ $# -gt 0 ] ; then
124125
packageval=$2
125126
if [ "$packageval" == "oss" -o "$packageval" == "OSS" ] ; then
126127
defaultPackaging
127-
elif [ "$packageval" == "nonoss" -o "$packageval" == "NONOSS" ] ; then
128+
elif [ "$packageval" == "noredist" -o "$packageval" == "NOREDIST" ] ; then
128129
packaging
129130
else
130131
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
136137
usage
137138
exit 1
138139
;;
139-
--)
140-
echo "Unrecognized option..."
141-
usage
142-
exit 1
143-
;;
144-
-*)
145-
echo "Unrecognized option..."
146-
usage
147-
exit 1
148-
;;
149140
*)
150141
shift
151-
break
152142
;;
153143
esac
154144
done

0 commit comments

Comments
 (0)