Introduction
Introduction Statistics Contact Development Disclaimer Help
tCapitalize title in gopher posts - adamsgaard.dk - my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log
Files
Refs
README
LICENSE
---
commit 4f9de52a9844e4cb6240b7a0c4972b5cbd42ec10
parent 2c7bd8dc7689b044cfe739e6e656acf1c1a9db04
Author: Anders Damsgaard <[email protected]>
Date: Wed, 3 Jun 2020 09:45:41 +0200
Capitalize title in gopher posts
Diffstat:
M Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -6,10 +6,10 @@ generate:
mkdir -p $(output)
saait `ls -1r pages/*.cfg`
for f in pages/[0-9][0-9][0-9]*.txt; do \
- title="$$(sed -n 's/^title.*=//p' "$${f%%.txt}.cfg")"; \
+ title="$$(sed -n 's/^title.*=//p' "$${f%%.txt}.cfg" | tr a-z A…
out="$$(printf '%s' "$$f" | sed 's/[0-9][0-9][0-9]-//')"; \
out="$(output)$${out##pages}"; \
- printf '--- %s ---\n\n' "$$title" > "$$out"; \
+ printf '# %s \n\n' "$$title" > "$$out"; \
cat "$$f" >> "$$out"; \
done
sed -i 's,|\([A-Za-z-]*\)\.html|server|port,|/\1.txt|server|port,' $(o…
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.