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

17 lines
178 B
Text
Raw Normal View History

#! /bin/sh
script=$1
shift
cat > $script <<EOF
#! /bin/sh
# compile must pass
$@ -o $script.qfo
if test \$? != 0; then
exit 1
fi
rm -f $script.qfo
exit 0
EOF
chmod +x $script