Revision 9265
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
304 | 304 |
|
305 | 305 |
#### paths |
306 | 306 |
|
307 |
top_script="$(canon_rel_path "$0")"; echo_vars top_script # outermost script |
|
308 |
top_dir="$(dirname "$top_script")"; echo_vars top_dir |
|
307 |
set_paths() |
|
308 |
{ |
|
309 |
top_script="$(canon_rel_path "$0")"; echo_vars top_script # outermost script |
|
310 |
top_dir="$(dirname "$top_script")"; echo_vars top_dir |
|
311 |
} |
|
312 |
set_paths |
|
309 | 313 |
|
310 | 314 |
|
311 | 315 |
#### verbose output |
Also available in: Unified diff
lib/sh/util.sh: added set_paths(), which sets $top_script, $top_dir