Preparing scripts for the "clean" target

This commit is contained in:
Pierre Pronchery 2013-01-07 02:32:08 +01:00
parent f2f4a41e57
commit 3f0fc1e098

View File

@ -48,7 +48,7 @@ _debug()
#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
}
@ -90,6 +90,9 @@ while [ $# -gt 0 ]; do
target="$1"
shift
#clean
[ $clean -ne 0 ] && continue
#uninstall
if [ "$uninstall" -eq 1 ]; then
$DEBUG $RM -- "$PKGCONFIG/$target" || exit 2