make makeself compression options optional.

This commit is contained in:
Robin Gareus 2016-07-29 20:45:21 +02:00
parent 6fa25a1258
commit 3647d47b6d
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,8 @@ GCC5ABI="F"
MAKESELF=""
BUILD_ROOT=../../build
MAKESELFOPTS="--bzip2"
if [ $# -eq 0 ] ; then
echo ""
echo "ERROR - Please specify build type"
@ -51,6 +53,8 @@ while [ $# -gt 0 ] ; do
--gcc5abi) GCC5ABI="T" ; shift ;;
--xz) MAKESELFOPTS="--xz --complevel 9" ; shift ;;
*)
#catch all for unknown arguments
echo ""
@ -181,7 +185,7 @@ fi
if test -n "$MAKESELF"; then
echo "Creating self-extracting installer"
$MAKESELF --xz --complevel 9 ${PACKAGE}/ ${PACKAGE}.run ${APPNAME} ./install.sh
$MAKESELF ${MAKESELFOPTS} ${PACKAGE}/ ${PACKAGE}.run ${APPNAME} ./install.sh
else
echo "Creating tarball..."
tar -cf ${PACKAGE}.tar ${PACKAGE}