Still installing the old command names.

After seeing Jeff's guide, I changed my mind about the
big-rename transition plan.  Even if Porcelains are kept up to
date, those web documents that describes older world order would
live longer and people will stumble across them via google
searches.  And who knows how many mirrored copies there are.

The backward compatible symbolic links *will* be removed before
1.0.  But that will not happen in 0.99.8.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-09-30 00:27:11 -07:00
parent 264b16b621
commit 894a8a8b1b
2 changed files with 6 additions and 11 deletions

View File

@ -119,7 +119,7 @@ PROGRAMS = \
git-update-ref \ git-update-ref \
$(SIMPLE_PROGRAMS) $(SIMPLE_PROGRAMS)
# Backward compatibility -- to be removed in 0.99.8 # Backward compatibility -- to be removed after 1.0
PROGRAMS += git-ssh-pull git-ssh-push PROGRAMS += git-ssh-pull git-ssh-push
PYMODULES = \ PYMODULES = \
@ -345,6 +345,7 @@ install: $(PROGRAMS) $(SCRIPTS)
$(INSTALL) -d -m755 $(DESTDIR)$(bindir) $(INSTALL) -d -m755 $(DESTDIR)$(bindir)
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir) $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
$(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick $(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick
sh ./cmd-rename.sh $(DESTDIR)$(bindir)
$(MAKE) -C templates install $(MAKE) -C templates install
$(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR) $(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR)
$(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR) $(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR)

View File

@ -1,15 +1,13 @@
#!/bin/sh #!/bin/sh
#
# This is for people who installed previous GIT by hand and would want
# to remove the backward compatible links:
#
# ./cmd-rename.sh $bindir
#
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
@ -54,7 +52,3 @@ git-update-cache git-update-index
git-convert-cache git-convert-objects git-convert-cache git-convert-objects
git-fsck-cache git-fsck-objects git-fsck-cache git-fsck-objects
EOF EOF
# These two are a bit more than symlinks now.
# git-ssh-push git-ssh-upload
# git-ssh-pull git-ssh-fetch