mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
55705dac83
The source tree is made read-only by `make distcheck`, so writing temporary files to the source directory is a no-no (really, it's a bit of a bug in qfcc, as per #51).
16 lines
178 B
Bash
Executable file
16 lines
178 B
Bash
Executable file
#! /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
|