diff options
author | Case Duckworth | 2015-04-01 23:16:18 -0700 |
---|---|---|
committer | Case Duckworth | 2015-04-01 23:20:18 -0700 |
commit | d161be120c22faf222ec15ca618ee367e4d56575 (patch) | |
tree | b945633e680e5682a967f63bad88a2b262b4d4c6 /trunk/lozenge.sh | |
parent | Merge branch 'gh-pages' of https://github.com/duckwork/autocento into gh-pages (diff) | |
download | autocento-d161be120c22faf222ec15ca618ee367e4d56575.tar.gz autocento-d161be120c22faf222ec15ca618ee367e4d56575.zip |
Refactor makefile; Add hapax preprocessor
Diffstat (limited to 'trunk/lozenge.sh')
-rw-r--r-- | trunk/lozenge.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/trunk/lozenge.sh b/trunk/lozenge.sh new file mode 100644 index 0000000..9f0cd55 --- /dev/null +++ b/trunk/lozenge.sh | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | outFile="$1"; | ||
4 | shift; | ||
5 | fileList="$@"; | ||
6 | |||
7 | echo -n "Updating \"lozenge.js\"..." | ||
8 | |||
9 | list=`echo ${fileList[@]} |\ | ||
10 | sed -e 's/\(\S\+.html\) \?/"\1",/g'\ | ||
11 | -e 's/^\(.*\),$/var files=[\1]/'` | ||
12 | |||
13 | sed -i "s/var files=.*/$list/" "$outFile"; | ||
14 | |||
15 | echo "Done." | ||