diff options
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 |