tcosmetics in libdevuansdk - libdevuansdk - common library for devuan's simple distro kits HTML git clone https://git.parazyd.org/libdevuansdk DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 0d8bdbf678835ceebe67ca930406aa050fcbb392 DIR parent f003e4e17e1b350567b80985b101af30cb706aca HTML Author: KatolaZ <katolaz@yahoo.it> Date: Tue, 14 Jun 2016 06:34:10 +0100 cosmetics in libdevuansdk Diffstat: M libdevuansdk | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) --- DIR diff --git a/libdevuansdk b/libdevuansdk t@@ -23,6 +23,8 @@ devuan_sdk_version=0.1 +notice "Loading Devuan SDK library v$devuan_sdk_version" + setopt pushdsilent # export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" t@@ -38,8 +40,13 @@ SDK_LIB=${SDK_LIB:-`pwd`} sdk_init(){ fn sdk_init + +# default operational paths + R=${R:-$SDK_PREFIX} + H=${H:-$SDK_HOME} + E=${E:-$SDK_CONF} - req=(os release version mirror section) + req=(os release version mirror section R H E) ckreq || { error "configuration is missing"; zshexit; return 1 } # setting core, base, and other packages t@@ -68,6 +75,7 @@ sdk_init(){ strapdir="${workdir}/${os}-${release}-${version}" outdir="$H/builds" + # KatolaZ says: wtf???? [[ -r $SDK_LIB/libdevuansdk ]] || { t@@ -119,18 +127,14 @@ sdk_init(){ TEXTDOMAIN=devuan # create mandatory workdirs + act "Creating directory ::1 dir::" $strapdir mkdir -p ${strapdir} - notice "Loading Devuan SDK library v$devuan_sdk_version" # ... act "library succesfully loaded" -# default operational paths - R=${R:-$SDK_PREFIX} - H=${H:-$SDK_HOME} - E=${E:-$SDK_CONF} } # Closes sdk_init