0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-06 01:11:38 +00:00
quakeforge/tools/qfcc/test/build-compile-fail-run

16 lines
165 B
Text
Raw Normal View History

#! /bin/sh
script=$1
shift
cat > $script <<EOF
#! /bin/sh
# compile must fail with a normal error
$@
if test \$? != 1; then
exit 1
fi
exit 0
EOF
chmod +x $script