Revision 9787
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/local.sh | ||
---|---|---|
6 | 6 |
if self_not_included; then |
7 | 7 |
|
8 | 8 |
root_dir="$(canon_rel_path "$(dirname "${BASH_SOURCE[0]}")"/../..)" || return |
9 |
|
|
10 |
root_rel_path() { log++; base_dir="$root_dir" path="$1" rel_path; } |
|
11 |
|
|
9 | 12 |
bin_dir="$root_dir"/bin |
10 | 13 |
bin_dir_abs="$(realpath "$bin_dir")" || return |
11 | 14 |
|
Also available in: Unified diff
lib/sh/local.sh: added root_rel_path()