make makeself compression options optional.
This commit is contained in:
parent
6fa25a1258
commit
3647d47b6d
|
@ -13,6 +13,8 @@ GCC5ABI="F"
|
||||||
MAKESELF=""
|
MAKESELF=""
|
||||||
BUILD_ROOT=../../build
|
BUILD_ROOT=../../build
|
||||||
|
|
||||||
|
MAKESELFOPTS="--bzip2"
|
||||||
|
|
||||||
if [ $# -eq 0 ] ; then
|
if [ $# -eq 0 ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "ERROR - Please specify build type"
|
echo "ERROR - Please specify build type"
|
||||||
|
@ -51,6 +53,8 @@ while [ $# -gt 0 ] ; do
|
||||||
|
|
||||||
--gcc5abi) GCC5ABI="T" ; shift ;;
|
--gcc5abi) GCC5ABI="T" ; shift ;;
|
||||||
|
|
||||||
|
--xz) MAKESELFOPTS="--xz --complevel 9" ; shift ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
#catch all for unknown arguments
|
#catch all for unknown arguments
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -181,7 +185,7 @@ fi
|
||||||
|
|
||||||
if test -n "$MAKESELF"; then
|
if test -n "$MAKESELF"; then
|
||||||
echo "Creating self-extracting installer"
|
echo "Creating self-extracting installer"
|
||||||
$MAKESELF --xz --complevel 9 ${PACKAGE}/ ${PACKAGE}.run ${APPNAME} ./install.sh
|
$MAKESELF ${MAKESELFOPTS} ${PACKAGE}/ ${PACKAGE}.run ${APPNAME} ./install.sh
|
||||||
else
|
else
|
||||||
echo "Creating tarball..."
|
echo "Creating tarball..."
|
||||||
tar -cf ${PACKAGE}.tar ${PACKAGE}
|
tar -cf ${PACKAGE}.tar ${PACKAGE}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user