gcc ABI check happens before unpacking
[ardour.git] / tools / linux_packaging / package
index 653cae0b55cfe4d778a1afa95946dc2a0eb23fec..a32de23048a3e3ba206d3e4851d5418a56f7f38b 100755 (executable)
@@ -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