Project

General

Profile

« Previous | Next » 

Revision 9787

lib/sh/local.sh: added root_rel_path()

View differences:

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