summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-20 20:07:32 -0500
committerJune McEnroe <june@causal.agency>2019-02-20 20:07:32 -0500
commit5d9fbeab91677ccac995337daf530e8a2d83fd68 (patch)
treeafae8240fe87d02ce872aabfd8bea69c41ba1bde
parentFactor out html.sh and produce html for all sources (diff)
downloadsrc-5d9fbeab91677ccac995337daf530e8a2d83fd68.tar.gz
src-5d9fbeab91677ccac995337daf530e8a2d83fd68.zip
Use $PWD in html.sh to pass absolute path to man
Diffstat (limited to '')
-rw-r--r--bin/Makefile6
-rw-r--r--bin/html.sh4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 6e00e175..f0128b16 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -107,16 +107,16 @@ $(HTMLS): ttpre hi html.sh
 .SUFFIXES: .html
 
 .c.html:
-	sh html.sh $< ./man1/$(<:.c=.1) > $@
+	sh html.sh $< man1/$(<:.c=.1) > $@
 
 .sh.html:
-	sh html.sh $< ./man1/$(<:.sh=.1) > $@
+	sh html.sh $< man1/$(<:.sh=.1) > $@
 
 .h.html:
 	sh html.sh $< > $@
 
 Makefile.html: Makefile bin.7
-	sh html.sh Makefile ./bin.7 > Makefile.html
+	sh html.sh Makefile bin.7 > Makefile.html
 
 clean:
 	rm -f $(BINS_ALL) $(LINKS) tags scheme.h scheme.png *.o *.html
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}"
e3a3f199a63661b3e31272c3fa71&follow=1'>Filter invite-notifyJune McEnroe 2019-11-10Add capsicum note to READMEJune McEnroe 2019-11-10Filter extended-joinJune McEnroe 2019-11-10Expand client configuration documentation and list capabilitiesJune McEnroe 2019-11-10Request all supported caps from serverJune McEnroe 2019-11-10Filter ACCOUNT, AWAY, CHGHOST for incapable clientsJune McEnroe 2019-11-10Rename listen to localJune McEnroe 2019-11-09Remove extended-join and invite-notifyJune McEnroe The remaining caps only generate new commands which can easily be filtered out when sending to clients so will be in the first pass of support. extended-join is probably safe to pass through unaltered, just causing extraneous parameters on JOIN commands, but maybe not. invite-notify reuses the INVITE command where the invited user is not self. 2019-11-09Maintain stateCaps and offer them to clientsJune McEnroe 2019-11-09Parse capabilitiesJune McEnroe The list that I've defined are the ones that I expect to be able to enable probably without any clients breaking... And of course server-time which pounce implements itself. 2019-11-09Avoid the reserved _A names with BIT macroJune McEnroe 2019-11-09Define macro for bit flag enumsJune McEnroe 2019-11-08Check that password is hashedJune McEnroe 2019-11-08Avoid calling getopt_long again after it returns -1June McEnroe On GNU, calling getopt_long again will reset optind back to the first non-option argument, which would cause an infinite loop of reading the same configurtion file forever. 2019-11-08Only change AWAY status for registered clientsJune McEnroe Turns out I did eventually fix this, because I may want to implement "passive clients" for logging or notification stuff, which wouldn't affect AWAY status either. 2019-11-07Just write the example normallyJune McEnroe 2019-11-07Include path in readlinkat errorJune McEnroe 2019-11-07Call clientConsume before clientRecvJune McEnroe This might reduce the frequency of a client getting its own message back because it was behind in the ring when it sent it. 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe