Preparing scripts for the "clean" target

This commit is contained in:
Pierre Pronchery 2013-01-07 02:27:11 +01:00
parent 2ce3aff03c
commit 6dfec8d0df

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
#$Id$ #$Id$
#Copyright (c) 2011-2012 Pierre Pronchery <khorben@defora.org> #Copyright (c) 2011-2013 Pierre Pronchery <khorben@defora.org>
# #
#Redistribution and use in source and binary forms, with or without #Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met: #modification, are permitted provided that the following conditions are met:
@ -48,16 +48,20 @@ _debug()
#usage #usage
_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 return 1
} }
#main #main
clean=0
install=0 install=0
uninstall=0 uninstall=0
while getopts iuP: name; do while getopts "ciuP:" name; do
case $name in case $name in
c)
clean=1
;;
i) i)
uninstall=0 uninstall=0
install=1 install=1