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