Fixed "make clean"
This commit is contained in:
parent
24c17c432d
commit
31481468e3
|
@ -25,9 +25,13 @@ _usage()
|
|||
|
||||
|
||||
#main
|
||||
while getopts "cP:" "name"; do
|
||||
clean=0
|
||||
while getopts "cP:" name; do
|
||||
case "$name" in
|
||||
c|P)
|
||||
c)
|
||||
clean=1
|
||||
;;
|
||||
P)
|
||||
#XXX ignored
|
||||
;;
|
||||
?)
|
||||
|
@ -43,6 +47,8 @@ if [ $# -ne 1 ]; then
|
|||
fi
|
||||
target="$1"
|
||||
|
||||
[ "$clean" -ne 0 ] && exit 0
|
||||
|
||||
> "$target"
|
||||
FAILED=
|
||||
./string >> "$target" 2>&1 || FAILED="$FAILED string"
|
||||
|
|
Loading…
Reference in New Issue
Block a user