From 9fce418b46c9f0894f429384ef9e3dabaeffbeb4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 14 Apr 2015 16:36:17 -0700 Subject: Change file hierarchy and rewrite makefile - File hierarchy is now as follows: - / - appendix/ < appendix source files - backlinks/ < backlink sources & builds - hapax/ < *.hapax source files - scripts/ < scripts, like *.js, *.hs, etc. - templates/ < templates for outputs - text/ < source files - trunk/ < assets, like css, images, heads, etc. - index.html - *.html - Makefile --- trunk/toc.sh | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 trunk/toc.sh (limited to 'trunk/toc.sh') diff --git a/trunk/toc.sh b/trunk/toc.sh deleted file mode 100644 index fe440cb..0000000 --- a/trunk/toc.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -outFile="$1"; -shift 1; -glob="$@"; - -echo -n "Compiling $outFile" - -for file in $glob; do - title=$(grep '^title: ' $file | cut -d' ' -f2-); - subtitle=$(grep '^subtitle: ' $file | cut -d' ' -f2-); - htmlFile="${file%.txt}.html" - # if [[ "$title" == "Autocento of the breakfast table" ]]; then - # echo "#. [$subtitle]($htmlFile)" >> "$outFile"; - # else - # echo "#. [$title]($htmlFile)" >> "$outFile"; - # fi - if [[ -n "$subtitle" ]]; then - echo "#. [$title: $subtitle]($htmlFile)" >> "$outFile" - else - echo "#. [$title]($htmlFile)" >> "$outFile"; - fi - echo -n "." -done - -echo "Done." -- cgit 1.4.1-21-gabe81