diff options
author | H. Peter Anvin <hpa@smyrno.hos.anvin.org> | 2005-09-30 10:44:21 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@smyrno.hos.anvin.org> | 2005-09-30 10:44:21 -0700 |
commit | 300b4801b75a59961e66ad9fa96941e46fd76be5 (patch) | |
tree | f22490c08acc9314f493559e3339b72b18b57098 /cmd-rename.sh | |
parent | 09dea56568f90952b87d29353aca53359157cd29 (diff) | |
parent | 894a8a8b1b935639ac2ea503e8fa2887fd6bd44b (diff) | |
download | git-300b4801b75a59961e66ad9fa96941e46fd76be5.tar.gz |
Merge with master.kernel.org:/pub/scm/git/git.git
Diffstat (limited to 'cmd-rename.sh')
-rwxr-xr-x | cmd-rename.sh | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/cmd-rename.sh b/cmd-rename.sh index f90b6babd4..34e7f494ed 100755 --- a/cmd-rename.sh +++ b/cmd-rename.sh @@ -1,15 +1,13 @@ #!/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" 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 @@ -54,7 +52,3 @@ git-update-cache git-update-index git-convert-cache git-convert-objects git-fsck-cache git-fsck-objects EOF - -# These two are a bit more than symlinks now. -# git-ssh-push git-ssh-upload -# git-ssh-pull git-ssh-fetch |