Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=0b3bc3b6ca22d58927b64dabb927e4d4b7bf7b1f

commit 0b3bc3b6ca22d58927b64dabb927e4d4b7bf7b1f
Author: Michel Hermier <[email protected]>
Date:   Sat Dec 8 18:33:02 2012 +0100

scripts/makepkg

* Fix cut&paste error in command line handling (and a typo).

diff --git a/scripts/makepkg b/scripts/makepkg
index b854436..9b2209a 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -3044,7 +3044,7 @@ _makepkg() {
-h|--help)              makepkg_usage; return 0 ;;
# special options
--)                     shift; break ;; # End of options
-               --*|-?)                 makepkg_usage; return 1 ;;
+               --*|-?)                 break ;; # Option of the default command
-*)                     # Combined short options
split="$1"
shift
@@ -3053,7 +3053,6 @@ _makepkg() {
"-$(echo "${split}" | cut -c 3-)" \
"$@"
continue ;;
-               *=*)                    export "$1" ;;
*)                      break ;; # End of options
esac
if ! shift "$consumed"; then
@@ -3070,7 +3069,7 @@ _makepkg() {
fi
fi

-       "makepkg_${_command:-"build"}" "$@" # Defauld command is build
+       "makepkg_${_command:-"build"}" "$@" # Default command is build
return $?
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to