Revision 12778
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/runscripts/util.run | ||
---|---|---|
4 | 4 |
# usage: .../run function args |
5 | 5 |
# this usage also applies to all files that include this file |
6 | 6 |
|
7 |
if false; then #### run script template:
|
|
7 |
if false; then #### runscript template: |
|
8 | 8 |
#!/bin/bash -e |
9 | 9 |
auto_fwd=1 # optional |
10 | 10 |
. "$(dirname "${BASH_SOURCE[0]}")"/path/to/util_or_file_including_util.run "$@" |
11 | 11 |
.rel other_includes |
12 | 12 |
|
13 |
target() |
|
14 |
{ |
|
15 |
begin_target |
|
16 |
#... |
|
17 |
} |
|
18 |
|
|
13 | 19 |
all() |
14 | 20 |
{ |
15 |
echo_func |
|
21 |
begin_target |
|
22 |
target # defined above |
|
16 | 23 |
"$(dirname "${BASH_SOURCE[0]}")"/path_relative_to_self |
17 | 24 |
"$(dirname "${BASH_SOURCE[1]}")"/path_relative_to_caller |
18 | 25 |
"$top_dir"/path_relative_to_outermost_script |
Also available in: Unified diff
lib/runscripts/util.run: runscript template: added sample make target, using new make target template