]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_lib
r17: Initial Import
[debhelper.git] / dh_lib
diff --git a/dh_lib b/dh_lib
index b18c7e5a0deed3fa4b33ea97a7c350414d2b4bd3..1cc7e308a7e3c11ab2b1ae0bc51ddb754f2b7291 100644 (file)
--- a/dh_lib
+++ b/dh_lib
@@ -5,20 +5,20 @@
 # function.
 # Unfortunatly, this function doesn't work if your command uses redirection,
 # you will have to call verbose_echo by hand then.
-function doit() {
+doit() {
        verbose_echo "$*"
        $*
 }
 
 # Echo something if the verbose flag is on.
-function verbose_echo() {
+verbose_echo() {
        if [ "$DH_VERBOSE" ]; then
                echo "  $*"
        fi
 }
 
 # Echo an error message and exit.
-function error() {
+error() {
        echo `basename $0`": $1" >&2
        exit 1
 }
@@ -26,7 +26,7 @@ function error() {
 # Pass it a name of a binary package, it returns the name of the tmp dir to
 # use, for that package, relative to debian/
 # This is for back-compatability with the debian/tmp tradition.
-function tmpdir() {
+tmpdir() {
        if [ "$1" = "$MAINPACKAGE" ]; then
                echo tmp
        else
@@ -36,7 +36,7 @@ function tmpdir() {
 
 # Pass it a name of a binary package, it returns the name to prefix to files
 # in debian for this package.
-function pkgext() {
+pkgext() {
        if [ "$1" != "$MAINPACKAGE" ]; then
                echo "$PACKAGE."
        fi
@@ -49,7 +49,7 @@ function pkgext() {
 # 1: script to add to
 # 2: filename of snippet
 # 3: sed commands to run on the snippet. Ie, s/#PACKAGE#/$PACKAGE/
-function autoscript() {
+autoscript() {
        autoscript_script=$1
        autoscript_filename=$2
        autoscript_sed=$3
@@ -77,7 +77,7 @@ function autoscript() {
 # Argument processing and global variable initialization is below.
 
 # Parse command line.
-set -- `getopt vianp: $*`
+set -- `getopt xvianp: $*`
 
 for i; do
        case "$i"
@@ -103,6 +103,10 @@ for i; do
                        DH_NOSCRIPTS=1
                        shift
                        ;;
+               -x)     
+                       DH_EXCLUDE=1
+                       shift
+                       ;;
                --)
                        shift
                        break