summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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}"
d>June McEnroe This makes it even faster. From ~1s on a sqlite3.c amalgamation to ~0.85s. 2021-09-12Replace htagml regex with strncmpJune McEnroe Since ctags only ever produces regular expressions of the form /^re$/ or /^re/ with no other special characters, instead unescape the pattern and simply use strncmp. Running on a sqlite3.c amalgamation, the regex version takes ~37s while the strncmp version takes ~1s, producing identical output. Big win! 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe This fixes badly indented comments. 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe