diff options
author | Case Duckworth | 2015-04-14 16:36:17 -0700 |
---|---|---|
committer | Case Duckworth | 2015-04-14 16:36:17 -0700 |
commit | 9fce418b46c9f0894f429384ef9e3dabaeffbeb4 (patch) | |
tree | b2339220ee50cf48b8887f0cc1fed4813a95901b /trunk/common-titles.sh | |
parent | Add toc metadata (diff) | |
download | autocento-9fce418b46c9f0894f429384ef9e3dabaeffbeb4.tar.gz autocento-9fce418b46c9f0894f429384ef9e3dabaeffbeb4.zip |
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
Diffstat (limited to 'trunk/common-titles.sh')
-rw-r--r-- | trunk/common-titles.sh | 20 |
1 files changed, 0 insertions, 20 deletions
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 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | outFile="$1"; | ||
4 | shift 1; | ||
5 | glob="$@"; | ||
6 | |||
7 | echo -n "Compiling ${outFile}"; | ||
8 | |||
9 | for file in $glob; do | ||
10 | # Copy title to $outFile & link | ||
11 | title="$(grep '^title:' "$file" | cut -d' ' -f2- | sed 's/"//g')"; | ||
12 | if (( $RANDOM % 13 == 0 )); then | ||
13 | echo -n "| " >> "$outFile"; | ||
14 | else | ||
15 | echo -n " " >> "$outFile"; | ||
16 | fi | ||
17 | echo "[$title](${file%.*}.html)" >> "$outFile"; | ||
18 | echo -n "."; | ||
19 | done | ||
20 | echo "Done."; | ||