X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cmd-rename.sh;h=992493de2218ad86d59e6a60e1ee3e01f5c7221d;hb=ee72aeaf009417156a3599b0eb69da3f7023ca07;hp=34e7f494ed000989276cad428d81a97316e995d3;hpb=1301c6eb412e7c5511b952a12e42c70ad56f028b;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