commit c6a5e9c5788f7d5893bf6b60774fa51cdee3038f
parent 7cc9a6bfecb767ac4dcb5895d30cb32acaa22bd1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 11 Dec 2020 17:43:14 +0100
Makefile: fix parsing of phlog selectors
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -15,13 +15,13 @@ generate:
printf '# %s \n\n' "$$title" > "$$out"; \
cat "$$f" >> "$$out"; \
done
- sed 's,|\([A-z0-9-]*\)\.html|server|port,|/\1.txt|server|port,' \
- $(output)/index.gph > $(gopheroutput)/index.gph
+ mv $(output)/*.gph $(gopheroutput)/
+ sed -i 's,|\([A-z0-9-]*\)\.html|server|port,|/\1.txt|server|port,' \
+ $(gopheroutput)/index.gph
sed 's,https://adamsgaard.dk,gopher://adamsgaard.dk/0,g; \
s,text/html,text,g; \
s,\.html,\.txt,g' \
$(output)/atom.xml > $(gopheroutput)/atom.xml;
- mv $(output)/*.gph $(gopheroutput)/
rsync -a $(gopheroutput)/ /var/gopher/
view: