aboutsummaryrefslogtreecommitdiff
path: root/check_bindir
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2007-11-28 23:21:57 +0700
committerJunio C Hamano <gitster@pobox.com>2008-06-19 16:00:38 -0700
commitf28ac70f48aa36f0d6ea1cbaa967b56802549016 (patch)
tree31536d9ad88985f987f4f3813a5f9cbd864fb2ce /check_bindir
parente449f105805ffa49ccf7cf080db897ecf65a1a0f (diff)
downloadgit-f28ac70f48aa36f0d6ea1cbaa967b56802549016.tar.gz
git-f28ac70f48aa36f0d6ea1cbaa967b56802549016.tar.xz
Move all dashed-form commands to libexecdir
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check_bindir')
-rwxr-xr-xcheck_bindir13
1 files changed, 13 insertions, 0 deletions
diff --git a/check_bindir b/check_bindir
new file mode 100755
index 000000000..a1c4c3e8d
--- /dev/null
+++ b/check_bindir
@@ -0,0 +1,13 @@
+#!/bin/sh
+bindir="$1"
+gitexecdir="$2"
+gitcmd="$3"
+if test "$bindir" != "$gitexecdir" -a -x "$gitcmd"
+then
+ echo
+ echo "!! You have installed git-* commands to new gitexecdir."
+ echo "!! Old version git-* commands still remain in bindir."
+ echo "!! Mixing two versions of Git will lead to problems."
+ echo "!! Please remove old version commands in bindir now."
+ echo
+fi