From d161be120c22faf222ec15ca618ee367e4d56575 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 1 Apr 2015 23:16:18 -0700 Subject: Refactor makefile; Add hapax preprocessor --- wip/0 | 0 wip/backlink.sh | 22 ---------------------- wip/makefile | 48 ------------------------------------------------ 3 files changed, 70 deletions(-) delete mode 100644 wip/0 delete mode 100644 wip/backlink.sh delete mode 100644 wip/makefile (limited to 'wip') diff --git a/wip/0 b/wip/0 deleted file mode 100644 index e69de29..0000000 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 @@ -#!/bin/bash - -# Variables -OPTIND=1 -header="" -blacklist="" - -while getopts "h:b:" opt; do - case "$opt" in - h) - header=$OPTARG - ;; - b) - blacklist=$OPTARG - ;; - esac -done - -shift $((OPTIND - 1)) - -echo "header = $header" -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 @@ -# MAKEFILE for Autocento of the breakfast table -# by Case Duckworth | case.duckworth@gmail.com | autocento.me -# inspired by Lincoln Mullen | lincolnmullen.com -# vim: fdm=marker - -# Define variables {{{ -srcs := $(wildcard *.txt) -trunk:= trunk -versifyer = $(trunk)/versify.exe -versifySrc= $(trunk)/versify.hs - -htmlBlackList = index.html template.html index-txt.html -htmls = $(filter-out $(htmlBlackList),$(patsubst %.txt,%.html,$(srcs))) -htmlTemplate = template.html -htmlPandocOptions = --template=$(htmlTemplate) -htmlPandocOptions+= --filter=$(versifyer) -htmlPandocOptions+= --smart --mathml --section-divs - -backBlackList = "hapax.txt|first-lines.txt|common-titles.txt" -backSrcs = $(patsubst %.html,%.back,$(htmls)) -backs = $(patsubst %.back, %_backlinks.htm,$(backSrcs)) -backHead = $(trunk)/backlink.head - -hapaxBlackList = first-lines.txt common-titles.txt hapax.txt -hapaxs = $(patsubst %.txt,%.hapax,$(srcs)) -hapaxer = $(trunk)/hapax.lua -hapaxHead = $(trunk)/hapax.head -hapaxTemp = hapax.tmp -hapaxOut = hapax.txt - -lozengeOut = $(trunk)/lozenge.js -# }}} - -.PHONY: all -all: $(versifyer) htmls backlinks -.PHONY: htmls -htmls: $(htmls) -.PHONY: backlinks -backlinks: $(backs) - -$(versifyer): $(versifySrc) - ghc --make $(versifySrc) - -%.html: %.txt template.html $(versifyer) - pandoc $< -f markdown -t html5 $(htmlPandocOptions) -o $@ - -%_backlinks.htm: %.back - pandoc $< -f markdown -t html5 $(htmlPandocOptions) -o $@ -- cgit 1.4.1-21-gabe81