mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
1077cf95fd
get OSX_VERSION_MIN >= 10.9 working (defaults to libc++) simplify the wrapper scripts a bit
20 lines
465 B
Bash
20 lines
465 B
Bash
#!/usr/bin/env bash
|
|
|
|
function _exit()
|
|
{
|
|
EC=$?
|
|
if [ $EC -ne 0 ]; then
|
|
test -z "$SCRIPT" && SCRIPT=`basename $0`
|
|
echo ""
|
|
echo "exiting with abnormal exit code ($EC)"
|
|
test -n "$OCDEBUG" || echo "run 'OCDEBUG=1 ./$SCRIPT' to enable debug messages"
|
|
echo "removing stale locks..."
|
|
remove_locks
|
|
echo "if it is happening the first time, then just re-run the script"
|
|
echo ""
|
|
fi
|
|
}
|
|
|
|
trap _exit EXIT
|
|
|