summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-11-06 03:35:09 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-11-06 03:35:09 +0100
commit7398848b72005bcb1d05ed56df49945453da6f66 (patch)
tree80ee442669609f64e5c6d32eb3885e8184276dca
parentbe7e121a029dce5c9f0703626a3800afcdd5c51e (diff)
downloadndim-git-utils-7398848b72005bcb1d05ed56df49945453da6f66.tar.gz
ndim-git-utils-7398848b72005bcb1d05ed56df49945453da6f66.tar.xz
ndim-git-utils-7398848b72005bcb1d05ed56df49945453da6f66.zip
Fix --version output with program name
-rwxr-xr-xgit-amb/git-amb.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-amb/git-amb.in b/git-amb/git-amb.in
index 5753cd4..75a1c5b 100755
--- a/git-amb/git-amb.in
+++ b/git-amb/git-amb.in
@@ -23,6 +23,8 @@
# Known to work and tested with
# - git 1.5.3.4
+self="$(basename "$0")"
+
case "$1" in
-V|--version)
echo "$self (@PACKAGE_NAME@) @PACKAGE_VERSION@"
@@ -39,8 +41,6 @@ For more details, see the git-amb(1) man page."
require_work_tree
-self="$(basename "$0")"
-
amb_detect_configure() {
for configure_ac in \
"${top_srcdir}/configure.ac" \