Do not install backward compatibility links anymore.
This is a companion patch to 4f9dcf7e5c
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>
This commit is contained in:
parent
f676fa76e2
commit
319f8b3da6
1
Makefile
1
Makefile
@ -413,7 +413,6 @@ check:
|
|||||||
install: $(PROGRAMS) $(SCRIPTS)
|
install: $(PROGRAMS) $(SCRIPTS)
|
||||||
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(bindir))
|
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(bindir))
|
||||||
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(call shellquote,$(DESTDIR)$(bindir))
|
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(call shellquote,$(DESTDIR)$(bindir))
|
||||||
sh ./cmd-rename.sh $(call shellquote,$(DESTDIR)$(bindir))
|
|
||||||
$(MAKE) -C templates install
|
$(MAKE) -C templates install
|
||||||
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
|
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
|
||||||
$(INSTALL) $(PYMODULES) $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
|
$(INSTALL) $(PYMODULES) $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))
|
||||||
|
@ -1,13 +1,21 @@
|
|||||||
#!/bin/sh
|
#!/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"
|
d="$1"
|
||||||
test -d "$d" || exit
|
test -d "$d" || exit
|
||||||
while read old new
|
while read old new
|
||||||
do
|
do
|
||||||
rm -f "$d/$old"
|
rm -f "$d/$old"
|
||||||
if test -f "$d/$new"
|
|
||||||
then
|
|
||||||
ln -s "$new" "$d/$old" || exit
|
|
||||||
fi
|
|
||||||
done <<\EOF
|
done <<\EOF
|
||||||
git-add-script git-add
|
git-add-script git-add
|
||||||
git-archimport-script git-archimport
|
git-archimport-script git-archimport
|
||||||
|
Loading…
Reference in New Issue
Block a user