summaryrefslogtreecommitdiff
path: root/cmd-rename.sh
diff options
context:
space:
mode:
authorPatrick Mauritz <oxygene@studentenbude.ath.cx>2005-09-19 16:11:19 +0200
committerJunio C Hamano <junkio@cox.net>2005-09-19 17:35:49 -0700
commitbfb73b2ebc2d50c8e14133ad15137604fc54563d (patch)
tree08628460851bb13fd65d61609003d5a96164f767 /cmd-rename.sh
parent3b944aac3b88773d1fae4352706915aad21f3757 (diff)
downloadgit-bfb73b2ebc2d50c8e14133ad15137604fc54563d.tar.gz
[PATCH] Do not install compatibility symlink for what we do not install
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>
Diffstat (limited to 'cmd-rename.sh')
-rwxr-xr-xcmd-rename.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-rename.sh b/cmd-rename.sh
index ada33fb51d..ad3285b797 100755
--- a/cmd-rename.sh
+++ b/cmd-rename.sh
@@ -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