blob: 4ac72e185512abf9620ed9b9a61a638cc8f14e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
testfile="$1"
shift
if [ ! -f "$testfile" ]
then
echo "Syntax: $0 <testfile>"
exit 1
fi
shebang=$(head -n1 $testfile)
cmd=${shebang:2}
cmd=${cmd/\/usr\/bin\/runhugs/runhugs}
exec $cmd "$@" $testfile
|