From 45e72b41852b1ab9cf42dd933a128e3524744ce4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 6 Mar 2015 22:09:14 -0700 Subject: Removed compile.sh--USE COMPILE.LUA --- compile.sh | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 compile.sh (limited to 'compile.sh') diff --git a/compile.sh b/compile.sh deleted file mode 100644 index 51a94f7..0000000 --- a/compile.sh +++ /dev/null @@ -1,41 +0,0 @@ -num=0 -for file in src/{.[!.]*,*}.txt; do - # TODO: change this to work with globs & args & stuff - echo -n "Compiling $file to HTML5" - pandoc -f markdown \ - -t html5 \ - --template=.template.html \ - --smart \ - --mathml \ - "$file" \ - -o "${file%.txt}.html" - echo -n " & RIVER ..." - pandoc -f markdown \ - -t lua/river.lua \ - "$file" \ - -o "${file%.txt}.river" - echo " Done." - ((num += 1)) -done - -echo -echo "Moving files to build directory ..." -mv src/{.[!.]*,*}.html ./ -echo "Moving RIVERs to river/ ..." -mv src/*.river river/ -rm src/*.river -echo "Concatenating and counting rivers ..." -cat river/*.river | \ - sort | uniq -c | sort >river/COUNTS.txt -echo "Finished compiling $num files." -############################################### -echo -echo "Updating js/lozenge.js with file list ..." - -lozengeList=( $(ls *.html) ) - -list=$(sed -e 's/\S\+\.html/"&",/g' -e 's/,$//' -e 's/^.*$/var files=[&]/' <<< "${lozengeList[@]}") - -sed -i "s/var files=.*/$list/" js/lozenge.js - -echo "Finished updating: ${#lozengeList[@]} files." -- cgit 1.4.1-21-gabe81