about summary refs log tree commit diff stats
path: root/trunk/first-lines.sh
diff options
context:
space:
mode:
authorCase Duckworth2015-04-02 21:27:55 -0700
committerCase Duckworth2015-04-02 21:27:55 -0700
commitd832dace648047cdeee32f295b7f1c799d0b5b50 (patch)
tree34f7efb6e713eef3522053a8ee2aded46ad1e33d /trunk/first-lines.sh
parentFix #15: add compile support for indeces (diff)
downloadautocento-d832dace648047cdeee32f295b7f1c799d0b5b50.tar.gz
autocento-d832dace648047cdeee32f295b7f1c799d0b5b50.zip
Add Islands for backlinkless files
Diffstat (limited to 'trunk/first-lines.sh')
-rw-r--r--trunk/first-lines.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh index 37b7291..fb06026 100644 --- a/trunk/first-lines.sh +++ b/trunk/first-lines.sh
@@ -17,11 +17,12 @@ firstLineOf() { # $1 = file
17 echo "$try" 17 echo "$try"
18} 18}
19 19
20echo -n "Compiling ${outFile}..." 20echo -n "Compiling ${outFile}"
21cat "$header" > $outFile 21cat "$header" > $outFile
22 22
23for file in $glob; do 23for file in $glob; do
24 # Copy first line to $outFile & link 24 # Copy first line to $outFile & link
25 echo "[$(firstLineOf "$file")](${file%.*}.html)" >> $outFile 25 echo "[$(firstLineOf "$file")](${file%.*}.html)" >> $outFile;
26 echo -n ".";
26done 27done
27echo "Done." 28echo "Done."