Fixed use with one argument and no explicit output file

This commit is contained in:
Pierre Pronchery 2014-11-12 22:43:55 +01:00
parent daba0a1198
commit 3a47ddf1f6

View File

@ -65,7 +65,7 @@ if [ $# -eq 1 -a -n "$output" ]; then
target="$1"
LD_LIBRARY_PATH="../src" $CPP "$target" > "$output"
elif [ $# -gt 1 -a -z "$output" ]; then
elif [ $# -ge 1 -a -z "$output" ]; then
while [ $# -gt 0 ]; do
target="$1"
output="${target%.cpp}.o"