diff options
Diffstat (limited to 'wip')
-rw-r--r-- | wip/0 | 0 | ||||
-rw-r--r-- | wip/backlink.sh | 22 | ||||
-rw-r--r-- | wip/makefile | 48 |
3 files changed, 0 insertions, 70 deletions
diff --git a/wip/0 b/wip/0 deleted file mode 100644 index e69de29..0000000 --- a/wip/0 +++ /dev/null | |||
diff --git a/wip/backlink.sh b/wip/backlink.sh deleted file mode 100644 index dfbfe4b..0000000 --- a/wip/backlink.sh +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Variables | ||
4 | OPTIND=1 | ||
5 | header="" | ||
6 | blacklist="" | ||
7 | |||
8 | while getopts "h:b:" opt; do | ||
9 | case "$opt" in | ||
10 | h) | ||
11 | header=$OPTARG | ||
12 | ;; | ||
13 | b) | ||
14 | blacklist=$OPTARG | ||
15 | ;; | ||
16 | esac | ||
17 | done | ||
18 | |||
19 | shift $((OPTIND - 1)) | ||
20 | |||
21 | echo "header = $header" | ||
22 | echo "blacklist = $blacklist" | ||
diff --git a/wip/makefile b/wip/makefile deleted file mode 100644 index 88ff6c9..0000000 --- a/wip/makefile +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | # MAKEFILE for Autocento of the breakfast table | ||
2 | # by Case Duckworth | case.duckworth@gmail.com | autocento.me | ||
3 | # inspired by Lincoln Mullen | lincolnmullen.com | ||
4 | # vim: fdm=marker | ||
5 | |||
6 | # Define variables {{{ | ||
7 | srcs := $(wildcard *.txt) | ||
8 | trunk:= trunk | ||
9 | versifyer = $(trunk)/versify.exe | ||
10 | versifySrc= $(trunk)/versify.hs | ||
11 | |||
12 | htmlBlackList = index.html template.html index-txt.html | ||
13 | htmls = $(filter-out $(htmlBlackList),$(patsubst %.txt,%.html,$(srcs))) | ||
14 | htmlTemplate = template.html | ||
15 | htmlPandocOptions = --template=$(htmlTemplate) | ||
16 | htmlPandocOptions+= --filter=$(versifyer) | ||
17 | htmlPandocOptions+= --smart --mathml --section-divs | ||
18 | |||
19 | backBlackList = "hapax.txt|first-lines.txt|common-titles.txt" | ||
20 | backSrcs = $(patsubst %.html,%.back,$(htmls)) | ||
21 | backs = $(patsubst %.back, %_backlinks.htm,$(backSrcs)) | ||
22 | backHead = $(trunk)/backlink.head | ||
23 | |||
24 | hapaxBlackList = first-lines.txt common-titles.txt hapax.txt | ||
25 | hapaxs = $(patsubst %.txt,%.hapax,$(srcs)) | ||
26 | hapaxer = $(trunk)/hapax.lua | ||
27 | hapaxHead = $(trunk)/hapax.head | ||
28 | hapaxTemp = hapax.tmp | ||
29 | hapaxOut = hapax.txt | ||
30 | |||
31 | lozengeOut = $(trunk)/lozenge.js | ||
32 | # }}} | ||
33 | |||
34 | .PHONY: all | ||
35 | all: $(versifyer) htmls backlinks | ||
36 | .PHONY: htmls | ||
37 | htmls: $(htmls) | ||
38 | .PHONY: backlinks | ||
39 | backlinks: $(backs) | ||
40 | |||
41 | $(versifyer): $(versifySrc) | ||
42 | ghc --make $(versifySrc) | ||
43 | |||
44 | %.html: %.txt template.html $(versifyer) | ||
45 | pandoc $< -f markdown -t html5 $(htmlPandocOptions) -o $@ | ||
46 | |||
47 | %_backlinks.htm: %.back | ||
48 | pandoc $< -f markdown -t html5 $(htmlPandocOptions) -o $@ | ||