diff options
author | Shinnok <admin@shinnok.com> | 2017-11-29 12:48:22 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-12-16 13:05:16 +0100 |
commit | b07c31d8dfa44e18560eaacfe7f63ef2e5e23ff7 (patch) | |
tree | 850d6a539dd5ffc8a7349e4f356a92c13833015d /help3xsl/xhp2html.sh | |
parent | f391bd889ff83129dd2988d7e449869e5c687f18 (diff) |
Replace usage of readlink -f with realpath.
For consistency reasons, the other scripts use the latter. Additionally on
macOS/BSD readlink -f option is not available, nor other default tools
for canonicalizing paths, so looking for GNU's realpath in the first
place is a better bet.
Change-Id: I77b82a956f63c66e352a372895cd623f83916168
Reviewed-on: https://gerrit.libreoffice.org/45486
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/xhp2html.sh')
-rwxr-xr-x | help3xsl/xhp2html.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/help3xsl/xhp2html.sh b/help3xsl/xhp2html.sh index 4b37342543..b4e56b5a76 100755 --- a/help3xsl/xhp2html.sh +++ b/help3xsl/xhp2html.sh @@ -193,7 +193,7 @@ if test "${dir}" = "/"; then echo "error: cannot find \"program\" dir from \"$(pwd)\"" exit 1 fi -rootHelpex=$(readlink -f "${rootHelpex}/..") +rootHelpex=$(realpath "${rootHelpex}/..") done exedir="${rootHelpex}"/workdir/LinkTarget/Executable |