fixup.cc5711424b7ae36276a40c06ede5d95f87ca20f0
[git/dscho.git] / check_bindir
blob4e497b4120ff85157bee60b941016ab15668de4f
1 #!/bin/sh
2 bindir="$1"
3 gitexecdir="$2"
4 gitcmd="$3"
5 if test "$bindir" != "$gitexecdir" -a -x "$gitcmd"
6 then
7 echo
8 echo "!! You have installed git-* commands to new gitexecdir."
9 echo "!! Old version git-* commands still remain in bindir."
10 echo "!! Mixing two versions of Git will lead to problems."
11 echo "!! Please remove old version commands in bindir now."
12 echo
14 if test "$bindir" != "$gitexecdir" -a \
15 -x "${gitexecdir#z}"/git"$(expr "$gitcmd" : '.*\(\..*\)')"
16 then
17 echo
18 echo "!! You have installed git to new gitexecdir."
19 echo "!! This will likely cause problems, as it will become stale."
20 echo