diff options
author | June McEnroe <june@causal.agency> | 2019-02-20 20:07:32 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-20 20:07:32 -0500 |
commit | 5d9fbeab91677ccac995337daf530e8a2d83fd68 (patch) | |
tree | afae8240fe87d02ce872aabfd8bea69c41ba1bde /bin/html.sh | |
parent | Factor out html.sh and produce html for all sources (diff) | |
download | src-5d9fbeab91677ccac995337daf530e8a2d83fd68.tar.gz src-5d9fbeab91677ccac995337daf530e8a2d83fd68.zip |
Use $PWD in html.sh to pass absolute path to man
Diffstat (limited to '')
-rw-r--r-- | bin/html.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/html.sh b/bin/html.sh index 3179c4b7..8cf05866 100644 --- a/bin/html.sh +++ b/bin/html.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -readonly GiteaURL=https://code.causal.agency/june/src/src/branch/master/bin +readonly GiteaURL='https://code.causal.agency/june/src/src/branch/master/bin' src=$1 man=${2:-} @@ -10,5 +10,5 @@ man=${2:-} cat <<- EOF <code><a href="${GiteaURL}/${src}">${src} in git</a></code> EOF -[ -f "${man}" ] && man -P cat "${man}" | ./ttpre +[ -f "${man}" ] && man -P cat "${PWD}/${man}" | ./ttpre ./hi -f html -o anchor "${src}" |