aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-04-04 15:31:38 +0100
committerroot <root@turin.home>2022-04-04 15:31:38 +0100
commitb086c533b48e8ac43267c15bbe72bf1b60eb8211 (patch)
treed9368c4ff8d1061c442a7b75f15d406f9e6d32d9 /make
parentaa224c53501208b3e7fa6ea3828598cb6f238b68 (diff)
Todos and proofreading.
Diffstat (limited to 'make')
-rwxr-xr-xmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/make b/make
index 7e13522..9f8cd7f 100755
--- a/make
+++ b/make
@@ -20,10 +20,12 @@ cat paper.ms|\
perl -0pe 's/\n\n\n/\n\n/g' |
cat macros - > target/temp
cat formatting.ms target/temp |\
+ tr '~' '-' |\
groff -Eket -Tpdf -ms -P-pa4 > target/paper.pdf
groff -Eket -Thtml -ms target/temp |\
sed -E "s|([^\"\'\>=])(http[s]?://[^[:space:]]*)|\1<a href=\2>Available online</a>|g" |\
sed -E "s|^(http[s]?://[^[:space:]]*)|<a href=\1>Available online</a>|g" |\
+ sed 's/.*~~~~.*/<hr>/' |\
sed "1,6d" > target/temp2
cat header.html target/temp2 |\
- sed -E '36 i <a href="./paper.pdf">See this document as a pdf</a><br>'> target/paper.html
+ sed -E '41 i <a href="./paper.pdf">See this document as a pdf</a><br>'> target/paper.html