diff options
author | Dan McGee <dan@archlinux.org> | 2007-05-29 16:53:15 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-05-29 16:53:15 -0400 |
commit | 103c7243a2d50dd46c0b5efefdc2e1b1d24e30e0 (patch) | |
tree | ad7914cb0864b1ae80f44dc49f967e20f888db59 /scripts/abs.in | |
parent | 2760828e9dff1250c1160b7df2f376107ffe134f (diff) | |
download | pacman-103c7243a2d50dd46c0b5efefdc2e1b1d24e30e0.tar.xz |
Get --help and --version options working on all scripts
Added the autoconf option std-options to the scripts/ directory, which
checks to ensure all programs have both --help and --version options. A
few things needed cleaning up to get this working. To test these types
of options, use the 'make distcheck' target.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/abs.in')
-rw-r--r-- | scripts/abs.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/abs.in b/scripts/abs.in index b30c1752..7ed677d4 100644 --- a/scripts/abs.in +++ b/scripts/abs.in @@ -67,12 +67,12 @@ update() { done } -if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then +if [ "$1" = "-h" -o "$1" = "--help" ]; then usage exit 0 fi -if [ "$1" = "-V" ] || [ "$1" = "--version" ]; then +if [ "$1" = "-V" -o "$1" = "--version" ]; then version exit 0 fi |