X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cmd-rename.sh;h=992493de2218ad86d59e6a60e1ee3e01f5c7221d;hb=ee72aeaf009417156a3599b0eb69da3f7023ca07;hp=ada33fb51d13999319f438db3f8437713330a9a3;hpb=8ac93bc98f5e868e890e1a740df9f0c6513189c8;p=git.git diff --git a/cmd-rename.sh b/cmd-rename.sh index ada33fb5..992493de 100755 --- a/cmd-rename.sh +++ b/cmd-rename.sh @@ -1,10 +1,21 @@ #!/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" test -d "$d" || exit while read old new do rm -f "$d/$old" - ln -s "$new" "$d/$old" done <<\EOF git-add-script git-add git-archimport-script git-archimport @@ -49,7 +60,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