blob: f3d93dcf19ecb01923088dc454da49f78eb0d1e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
TEST_OPT_@ID@_FOUND=0
ARGS=""
for a in "$@"; do
if [ "x${TEST_OPT_@ID@}" != "x" -a "x${TEST_OPT_@ID@}" = "x$a" ]; then
TEST_OPT_@ID@_FOUND=1
else
ARGS="$ARGS \"$a\""
fi
done
if [ "x${TEST_OPT_@ID@}" != "x" -a "x${TEST_OPT_@ID@_FOUND}" != "x1" ]; then
echo "Not given option '${TEST_OPT_@ID@}' as expected!"
exit 1
fi
eval "\"@COMMAND@\"" "$ARGS"
|