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>
Junio C Hamano committed
Sep 30, 2005 at 00:27 UTC
894a8a8b1b935639ac2ea503e8fa2887fd6bd44b
2 files changed
+6
-11
Makefile
+2
-1
@@ -119,7 +119,7 @@ PROGRAMS = \
119
git-update-ref \
120
$(SIMPLE_PROGRAMS)
121
122
-# Backward compatibility -- to be removed in 0.99.8
122
+# Backward compatibility -- to be removed after 1.0
123
PROGRAMS += git-ssh-pull git-ssh-push
124
125
PYMODULES = \
@@ -345,6 +345,7 @@ install: $(PROGRAMS) $(SCRIPTS)
345
$(INSTALL) -d -m755 $(DESTDIR)$(bindir)
346
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
347
$(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick
348
+ sh ./cmd-rename.sh $(DESTDIR)$(bindir)
349
$(MAKE) -C templates install
350
$(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR)
351
$(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR)
cmd-rename.sh
+4
-10
@@ -1,15 +1,13 @@
1
#!/bin/sh
2
-#
3
-# This is for people who installed previous GIT by hand and would want
4
-# to remove the backward compatible links:
5
-#
6
-# ./cmd-rename.sh $bindir
7
-#
2
d="$1"
3
test -d "$d" || exit
4
while read old new
5
do
6
rm -f "$d/$old"
7
+ if test -f "$d/$new"
8
+ then
9
+ ln -s "$new" "$d/$old" || exit
10
+ fi
11
done <<\EOF
12
git-add-script git-add
13
git-archimport-script git-archimport
@@ -54,7 +52,3 @@ git-update-cache git-update-index
52
git-convert-cache git-convert-objects
53
git-fsck-cache git-fsck-objects
54
EOF
57
-
58
-# These two are a bit more than symlinks now.
59
-# git-ssh-push git-ssh-upload
60
-# git-ssh-pull git-ssh-fetch