gcc ABI check happens before unpacking

This commit is contained in:
Robin Gareus
2015-10-04 17:52:29 +02:00
parent ac814da4be
commit 00c9d1bf34
3 changed files with 13 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ SINGLE_ARCH="F"
X86_BUNDLE_OK="F"
X86_64_BUNDLE_OK="F"
MAKESELF=""
BUILD_ROOT=../../build
if [ $# -eq 0 ] ; then
echo ""
@@ -162,6 +162,16 @@ cp install.sh ${PACKAGE}
cp stage2.run ${PACKAGE}/.stage2.run
cp README ${PACKAGE}
# gcc4/5 ABI test tool
if [ -e $BUILD_ROOT/tools/gccabicheck/gcc-glibmm-abi-check ]; then
cp $BUILD_ROOT/tools/gccabicheck/gcc-glibmm-abi-check ${PACKAGE}/.gcc-glibmm-abi-check
else
echo "!!!ERROR !!! gcc-glibmm-abi-check program is missing. packager will exit without being complete"
rm -rf ${PACKAGE}
rm -f stage2.run
exit 1
fi
if test -n "$MAKESELF"; then
echo "Creating self-extracting installer"
$MAKESELF --nocomp ${PACKAGE}/ ${PACKAGE}.run ${APPNAME} ./install.sh