X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cmd-rename.sh;h=34e7f494ed000989276cad428d81a97316e995d3;hb=211b5f9e62cc961acda59392fbf5a3efa8106c97;hp=f90b6babd4f7a8dd1f747b44abf41891745c8031;hpb=cf408cb4a002855a9ffb58009c5f40da7f68b55e;p=git.git diff --git a/cmd-rename.sh b/cmd-rename.sh index f90b6bab..34e7f494 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