about summary refs log tree commit diff stats
path: root/trunk/lozenge.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lozenge.sh')
-rw-r--r--trunk/lozenge.sh15
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
3outFile="$1";
4shift;
5fileList="$@";
6
7echo -n "Updating \"lozenge.js\"..."
8
9list=`echo ${fileList[@]} |\
10 sed -e 's/\(\S\+.html\) \?/"\1",/g'\
11 -e 's/^\(.*\),$/var files=[\1]/'`
12
13sed -i "s/var files=.*/$list/" "$outFile";
14
15echo "Done."