summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/config.tests/mac/mac_version.test
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:28:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:28:33 +0900
commit1df632a0e6e550a5a100247c6b4713078e78f413 (patch)
treee8577c3d310285ebb4c8beea37998f408286bda3 /tqtinterface/qt4/config.tests/mac/mac_version.test
parent012b00740f33c01949c88d7ea97e2dee81fabb41 (diff)
downloadexperimental-r14.0.7.tar.gz
experimental-r14.0.7.zip
Removed unnecessary and/or TDE-unrelated code.r14.0.7
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/config.tests/mac/mac_version.test')
-rwxr-xr-xtqtinterface/qt4/config.tests/mac/mac_version.test44
1 files changed, 0 insertions, 44 deletions
diff --git a/tqtinterface/qt4/config.tests/mac/mac_version.test b/tqtinterface/qt4/config.tests/mac/mac_version.test
deleted file mode 100755
index ae9e707..0000000
--- a/tqtinterface/qt4/config.tests/mac/mac_version.test
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-HOME=/dev/null
-export HOME
-
-VERBOSE=$1
-SRCDIR=$2
-OUTDIR=$3
-
-# debuggery
-[ "$VERBOSE" = "yes" ] && echo "Testing Mac version..." >&2
-
-# build a test program
-test -d $OUTDIR/config.tests/mac/ || mkdir -p $OUTDIR/config.tests/mac/
-cd $OUTDIR/config.tests/mac
-#TSTFILE=$OUTDIR/config.tests/mac/mac_version.cpp
-TSTFILE=mac_version.cpp
-
-rm -f $TSTFILE
-echo "#include <Carbon/Carbon.h>" >$TSTFILE
-echo "#include <stdio.h>" >>$TSTFILE
-echo "int main() {" >>$TSTFILE
-echo " long gestalt_version;" >>$TSTFILE
-echo " fprintf(stdout, \"%d\\n\", (Gestalt(gestaltSystemVersion, &gestalt_version) == noErr) ? gestalt_version : 0);" >>$TSTFILE
-echo " return 1;" >>$TSTFILE
-echo "}" >>$TSTFILE
-
-COMPILE_ERROR=yes
-if [ "$VERBOSE" = "yes" ]; then
- c++ $TSTFILE -o tst_mac_version -framework Carbon >&2 && COMPILE_ERROR=no
-else
- c++ $TSTFILE -o tst_mac_version -framework Carbon >/dev/null 2>&1 && COMPILE_ERROR=no
-fi
-
-# done
-if [ "$COMPILE_ERROR" = "yes" ]; then
- [ "$VERBOSE" = "yes" ] && echo "Mac version cannot be detected!" >&2
- exit 1
-else
- MAC_VERSION=`./tst_mac_version`
- [ "$VERBOSE" = "yes" ] && echo "Mac version set to: $MAC_VERSION." >&2
- echo $MAC_VERSION
- exit 0
-fi