Revision 14774
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/runscripts/table.run | ||
---|---|---|
49 | 49 |
srcs=("${srcs/#/$datasrc_dir/}") # empty str at start (/#) -> $datasrc_dir/ |
50 | 50 |
_1st_src="$(echo1 "${srcs[@]}")" |
51 | 51 |
|
52 |
header() { echo_func; : "${1:?}"; head -1 "$1"; } |
|
53 |
|
|
52 | 54 |
##### targets |
53 | 55 |
|
54 |
header.txt() { begin_target; to_target head -1 "$_1st_src"; }
|
|
56 |
header.txt() { begin_target; to_target header "$_1st_src"; }
|
|
55 | 57 |
|
56 | 58 |
load_data() |
57 | 59 |
{ |
Also available in: Unified diff
lib/runscripts/table.run: added header() and use it in header.txt()