diff options
author | Case Duckworth | 2015-04-04 23:58:22 -0700 |
---|---|---|
committer | Case Duckworth | 2015-04-04 23:58:22 -0700 |
commit | 529ede146afd125c76d86eb55969983af8ee21db (patch) | |
tree | f80e532dbcfade4a2dee5e3d122a5bc2d623622e /trunk/first-lines.sh | |
parent | Add backlinks to backlinks (diff) | |
download | autocento-529ede146afd125c76d86eb55969983af8ee21db.tar.gz autocento-529ede146afd125c76d86eb55969983af8ee21db.zip |
Some revision & TOC inclusion
Diffstat (limited to 'trunk/first-lines.sh')
-rw-r--r-- | trunk/first-lines.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh index fb06026..1378a82 100644 --- a/trunk/first-lines.sh +++ b/trunk/first-lines.sh | |||
@@ -1,8 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | outFile="$1"; | 3 | outFile="$1"; |
4 | header="$2"; | 4 | shift 1; |
5 | shift 2; | ||
6 | glob="$@"; | 5 | glob="$@"; |
7 | 6 | ||
8 | firstLineOf() { # $1 = file | 7 | firstLineOf() { # $1 = file |
@@ -18,7 +17,6 @@ firstLineOf() { # $1 = file | |||
18 | } | 17 | } |
19 | 18 | ||
20 | echo -n "Compiling ${outFile}" | 19 | echo -n "Compiling ${outFile}" |
21 | cat "$header" > $outFile | ||
22 | 20 | ||
23 | for file in $glob; do | 21 | for file in $glob; do |
24 | # Copy first line to $outFile & link | 22 | # Copy first line to $outFile & link |