Preparing scripts for the "clean" target

This commit is contained in:
Pierre Pronchery 2013-01-07 02:32:08 +01:00
parent 9de018ad46
commit 52b5082487

View File

@ -48,7 +48,7 @@ _debug()
#usage #usage
_usage() _usage()
{ {
echo "Usage: pkgconfig.sh [-c|-i|-u][-P prefix] target" 1>&2 echo "Usage: pkgconfig.sh [-c|-i|-u][-P prefix] target..." 1>&2
return 1 return 1
} }
@ -90,6 +90,9 @@ while [ $# -gt 0 ]; do
target="$1" target="$1"
shift shift
#clean
[ $clean -ne 0 ] && continue
#uninstall #uninstall
if [ "$uninstall" -eq 1 ]; then if [ "$uninstall" -eq 1 ]; then
$DEBUG $RM -- "$PKGCONFIG/$target" || exit 2 $DEBUG $RM -- "$PKGCONFIG/$target" || exit 2