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/common-titles.sh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 trunk/common-titles.sh (limited to 'trunk/common-titles.sh') diff --git a/trunk/common-titles.sh b/trunk/common-titles.sh deleted file mode 100644 index bae8a10..0000000 --- a/trunk/common-titles.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -outFile="$1"; -shift 1; -glob="$@"; - -echo -n "Compiling ${outFile}"; - -for file in $glob; do - # Copy title to $outFile & link - title="$(grep '^title:' "$file" | cut -d' ' -f2- | sed 's/"//g')"; - if (( $RANDOM % 13 == 0 )); then - echo -n "| " >> "$outFile"; - else - echo -n " " >> "$outFile"; - fi - echo "[$title](${file%.*}.html)" >> "$outFile"; - echo -n "."; -done -echo "Done."; -- cgit 1.4.1-21-gabe81