Code

[PATCH] Do not install compatibility symlink for what we do not install
authorPatrick Mauritz <oxygene@studentenbude.ath.cx>
Mon, 19 Sep 2005 14:11:19 +0000 (16:11 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Sep 2005 00:35:49 +0000 (17:35 -0700)
We sometimes do not install git-send-email nor git-http-pull; do not
unconditionally create symlinks to them.

Signed-off-by: Patrick Mauritz <oxygene@studentenbude.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cmd-rename.sh

index ada33fb51d13999319f438db3f8437713330a9a3..ad3285b7977b7dd1a7f152652004b2731e75b8cb 100755 (executable)
@@ -4,7 +4,9 @@ test -d "$d" || exit
 while read old new
 do
        rm -f "$d/$old"
+       if [ -x "$d/$new" ]; then
        ln -s "$new" "$d/$old"
+       fi
 done <<\EOF
 git-add-script git-add
 git-archimport-script  git-archimport