@matheusbsbs / matheus-bagliano / commits / 319f8b3da6
Fork 0

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>

Junio C Hamano committed Nov 1, 2005 at 16:46 UTC 319f8b3da6858f78282de9483be7b27b4bb1ffba
2 files changed +12 -5
Makefile
-1
@@ -413,7 +413,6 @@ check:
413 install: $(PROGRAMS) $(SCRIPTS)
414 $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(bindir))
415 $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(call shellquote,$(DESTDIR)$(bindir))
416 - sh ./cmd-rename.sh $(call shellquote,$(DESTDIR)$(bindir))
416 $(MAKE) -C templates install
417 $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
418 $(INSTALL) $(PYMODULES) $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
cmd-rename.sh
+12 -4
@@ -1,13 +1,21 @@
1 #!/bin/sh
2 +#
3 +# If you installed git by hand previously, you may find this
4 +# script useful to remove the symbolic links that we shipped
5 +# for backward compatibility.
6 +#
7 +# Running this script with the previous installation directory
8 +# like this:
9 +#
10 +# $ cmd-rename.sh /usr/local/bin/
11 +#
12 +# would clean them.
13 +
14 d="$1"
15 test -d "$d" || exit
16 while read old new
17 do
18 rm -f "$d/$old"
7 - if test -f "$d/$new"
8 - then
9 - ln -s "$new" "$d/$old" || exit
10 - fi
19 done <<\EOF
20 git-add-script git-add
21 git-archimport-script git-archimport