From f5b650a06cddd447ad7a75330e9e9c6baf23ccc4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 2 Oct 2013 15:32:45 -0400 Subject: Add documentation for lib/ * Add a bunch of man-pages * Add some comments to conf.sh * Add more information to librelib:usage() --- src/lib/conf.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/conf.sh') 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 +# 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 -- cgit v1.2.3-54-g00ecf