summaryrefslogtreecommitdiff
path: root/cmd-rename.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-01 21:58:53 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-01 21:58:53 -0800
commit235d521da60e4699e5bd59ac658b5b48bd76ddca (patch)
tree25620311ca206d41659b5f3e6f60760dca584c2b /cmd-rename.sh
parentd92ddb525d47f11ecb6b11e795a668240d9a1af5 (diff)
parent8e6ae4ad5ff14a6fd958ada867e24f8d248aac58 (diff)
GIT 0.99.9bv0.99.9b
This contains the changes made on the master branch since 0.99.9a. The workaround for building RPMs has not changed since 0.99.9a, mainly because I haven't heard back if it was good enough for kernel.org consumption, or otherwise what changes are needed. 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