about summary refs log tree commit diff stats
path: root/trunk/common-titles.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/common-titles.sh')
-rw-r--r--trunk/common-titles.sh20
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
3outFile="$1";
4shift 1;
5glob="$@";
6
7echo -n "Compiling ${outFile}";
8
9for 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 ".";
19done
20echo "Done.";