diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-11-07 16:22:07 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-11-07 16:22:07 +0100 |
commit | a341a7fafd1d39f02be34430852d2c0736ca5447 (patch) | |
tree | 8b07ea318e33e55c88e5524ef5e2c1bdd6e4fc3c /git-amb | |
parent | 0cb782ade9552ed0e393e4baf7565661c3420edb (diff) | |
download | ndim-git-utils-a341a7fafd1d39f02be34430852d2c0736ca5447.tar.gz ndim-git-utils-a341a7fafd1d39f02be34430852d2c0736ca5447.tar.xz ndim-git-utils-a341a7fafd1d39f02be34430852d2c0736ca5447.zip |
Add new utilities: git-follow, git-buildmsg
Diffstat (limited to 'git-amb')
-rwxr-xr-x | git-amb/git-amb.in | 46 |
1 files changed, 5 insertions, 41 deletions
diff --git a/git-amb/git-amb.in b/git-amb/git-amb.in index 892dd60..0adceb6 100755 --- a/git-amb/git-amb.in +++ b/git-amb/git-amb.in @@ -23,50 +23,14 @@ # Known to work and tested with # - git 1.5.3.4 # Should also work with git 1.2 and possibly older. -unset CDPATH +unset CDPATH SED="${SED-sed}" -if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" -then :; -else - echo "$self: FATAL: This shell does not support POSIX sh \$() command substitution" >&2 - exit 1 -fi - -if test "x$(moo() { echo "meh"; }; moo)" = "xmeh"; then :; -else - echo "$self: FATAL: This shell does not support POSIX sh functions" >&2 - exit 1 -fi - -self="$(basename "$0")" -bindir="$(cd "$(dirname "$0")" && pwd)" -prefixdir="$(dirname "$bindir")" - -case "$1" in - -V|--version) - echo "$self (@PACKAGE_NAME@) @PACKAGE_VERSION@" - exit 0 - ;; - -h|--help) - for manpage in \ - "${prefixdir}/share/man/man1/${self}.1.gz" \ - "${prefixdir}/share/man/man1/${self}.1" \ - "${prefixdir}/man/man1/${self}.1.gz" \ - "${prefixdir}/man/man1/${self}.1" \ - ; - do - if test -s "$manpage" - then - if man "$manpage" 2> /dev/null - then - exit 0 - fi - fi - done - ;; -esac +self=`basename "$0"` +selfdir=`dirname "$0"` +selfdir=`cd "$selfdir" && pwd` +. "$selfdir/git-ndim-sh" SUBDIRECTORY_OK="yes" USAGE="<command> [params...]" |