X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cmd-rename.sh;h=992493de2218ad86d59e6a60e1ee3e01f5c7221d;hb=fbba222f5de21aafa566430a8ae7cf6f4ab163b1;hp=34e7f494ed000989276cad428d81a97316e995d3;hpb=894a8a8b1b935639ac2ea503e8fa2887fd6bd44b;p=git.git diff --git a/cmd-rename.sh b/cmd-rename.sh index 34e7f494..992493de 100755 --- a/cmd-rename.sh +++ b/cmd-rename.sh @@ -1,13 +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" - 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