Revision 14718
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/runscripts/util.run | ||
---|---|---|
13 | 13 |
target() |
14 | 14 |
{ |
15 | 15 |
begin_target |
16 |
"$(dirname "${BASH_SOURCE[0]}")"/path_relative_to_self |
|
17 |
"$(dirname "${BASH_SOURCE[1]}")"/path_relative_to_caller |
|
18 |
"$top_dir"/path_relative_to_outermost_script |
|
16 | 19 |
#... |
17 | 20 |
} |
18 | 21 |
|
... | ... | |
20 | 23 |
{ |
21 | 24 |
begin_target |
22 | 25 |
target # defined above |
23 |
"$(dirname "${BASH_SOURCE[0]}")"/path_relative_to_self |
|
24 |
"$(dirname "${BASH_SOURCE[1]}")"/path_relative_to_caller |
|
25 |
"$top_dir"/path_relative_to_outermost_script |
|
26 |
#... |
|
26 | 27 |
} |
27 | 28 |
|
28 | 29 |
on_exit # needed if should be runnable as shell-include (with leading ".") |
Also available in: Unified diff
fix: lib/runscripts/util.run: runscript template: all(): moved example commands to target(), where they would more likely be located