summaryrefslogtreecommitdiff
path: root/cmd-rename.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-01 16:46:38 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-01 16:46:38 -0800
commit319f8b3da6858f78282de9483be7b27b4bb1ffba (patch)
tree21c2bf20e21ab11129e18a24382c3599d822a3cc /cmd-rename.sh
parentf676fa76e26faed3ac02a9dae8f9f7addb9542a4 (diff)
downloadgit-319f8b3da6858f78282de9483be7b27b4bb1ffba.tar.gz
Do not install backward compatibility links anymore.
This is a companion patch to 4f9dcf7e5cf6c82455925102d315daf3b833e6d6 which stops mentioning the old command names. As promised, we do not install symlinks to let people use backward compatibility names anymore. cmd-rename.sh script is still shipped to help people who installed previous git by hand to clean up the leftover symlinks. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cmd-rename.sh')
-rwxr-xr-xcmd-rename.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/cmd-rename.sh b/cmd-rename.sh
index 34e7f494ed..992493de22 100755
--- a/cmd-rename.sh
+++ b/cmd-rename.sh
@@ -1,13 +1,21 @@
#!/bin/sh
+#
+# If you installed git by hand previously, you may find this
+# script useful to remove the symbolic links that we shipped
+# for backward compatibility.
+#
+# Running this script with the previous installation directory
+# like this:
+#
+# $ cmd-rename.sh /usr/local/bin/
+#
+# would clean them.
+
d="$1"
test -d "$d" || exit
while read old new
do
rm -f "$d/$old"
- if test -f "$d/$new"
- then
- ln -s "$new" "$d/$old" || exit
- fi
done <<\EOF
git-add-script git-add
git-archimport-script git-archimport