From 9de018ad469a8396ed8801e9f69e01c64c7220c9 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 7 Jan 2013 02:27:12 +0100 Subject: [PATCH] Preparing scripts for the "clean" target --- data/pkgconfig.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/data/pkgconfig.sh b/data/pkgconfig.sh index 895f3b7..d9bc981 100755 --- a/data/pkgconfig.sh +++ b/data/pkgconfig.sh @@ -1,6 +1,6 @@ #!/bin/sh #$Id$ -#Copyright (c) 2011-2012 Pierre Pronchery +#Copyright (c) 2011-2013 Pierre Pronchery # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: @@ -48,16 +48,20 @@ _debug() #usage _usage() { - echo "Usage: pkgconfig.sh [-i|-u][-P prefix] target" 1>&2 + echo "Usage: pkgconfig.sh [-c|-i|-u][-P prefix] target" 1>&2 return 1 } #main +clean=0 install=0 uninstall=0 -while getopts iuP: name; do +while getopts "ciuP:" name; do case $name in + c) + clean=1 + ;; i) uninstall=0 install=1