Make hg-fst-export.sh callable via a symbolic link
commitac887f310f8bfddf19e647f54d9f5cd6bfd1e64c
authorFelix Althaus <felix.althaus@undkonsorten.com>
Sat, 20 May 2017 08:11:00 +0000 (20 10:11 +0200)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Fri, 2 Jun 2017 14:13:20 +0000 (2 16:13 +0200)
tree68c7db765e43ff371f73a0fd727f15d00999e794
parent4bb50bb3fba1b86decf62d1f8763d56e34ac902c
Make hg-fst-export.sh callable via a symbolic link

Calling hg-fast-export.sh via a symlink used to fail because the
script would look for hg-fast-export.py in the symlink‘s
directory. This patch adds symlink resolution using greadlink with a
fallback to readlink in order to support MacOS. That way you can
safely add a symlink to hg-fast-export.sh somewhere in you PATH.

Fixes https://github.com/frej/fast-export/issues/93
hg-fast-export.sh