diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-02 15:32:45 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-02 15:32:45 -0400 |
commit | f5b650a06cddd447ad7a75330e9e9c6baf23ccc4 (patch) | |
tree | 8be9f443b7056a9c08beb37fce490e99d1ea26a1 /src/lib/conf.sh | |
parent | 86ee0a5da2a3a02d291ae40c8570bcd97ff066de (diff) |
Add documentation for lib/
* Add a bunch of man-pages
* Add some comments to conf.sh
* Add more information to librelib:usage()
Diffstat (limited to 'src/lib/conf.sh')
-rw-r--r-- | src/lib/conf.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh index f96af26..c2904de 100644 --- a/src/lib/conf.sh +++ b/src/lib/conf.sh @@ -61,7 +61,7 @@ list_files() { } # Usage: list_envvars $slug -# Lists the environmental variables that take precidence over the configuration +# Lists the environmental variables that take precedence over the configuration # files for $slug. list_envvars() { local slug=$1 @@ -133,6 +133,7 @@ check_vars() { # makepkg configuration ######################################################## # Usage: get_conf_makepkg <var_name> <default_value> +# Does not work with arrays get_conf_makepkg() ( set +euE local setting=$1 @@ -141,6 +142,7 @@ get_conf_makepkg() ( printf '%s\n' "${!setting:-${default}}" ) +# Does not work with arrays set_conf_makepkg() { local key=$1 local val=$2 |