From 4c59fa03f0bca286dff6003beb365794ecb60e72 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: May 31 2018 08:28:16 +0000 Subject: subr/build_init.subr, etc/build.usage: additionally source ${HOME}/.midipix_build.vars. --- diff --git a/etc/build.usage b/etc/build.usage index 8197c2a..71ba683 100644 --- a/etc/build.usage +++ b/etc/build.usage @@ -46,7 +46,7 @@ usage: ./build.sh [-4|6] [-a nt32|nt64] [-b debug|release] packages_deps or host_packages_deps, native_packages_deps, native_packages_deps_x11, packages or native_packages, or dist. - ${HOME}/midipix_build.vars will be sourced if present. + ${HOME}/midipix_build.vars, ${HOME}/.midipix_build.vars, and/or ../midipix_build.vars will be sourced if present. Examples: ./build.sh -r coreutils diff --git a/subr/build_init.subr b/subr/build_init.subr index 7683ccf..a76b9c4 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -30,7 +30,7 @@ build_init() { fi; ex_rtl_log_msg failexit "Error: invalid architecture \`${ARCH}'."; fi; - for __ in ${HOME}/midipix_build.vars ../midipix_build.vars ./vars/env.vars ./vars/midipix.vars ./vars/build.vars; do + for __ in ${HOME}/midipix_build.vars ${HOME}/.midipix_build.vars ../midipix_build.vars ./vars/env.vars ./vars/midipix.vars ./vars/build.vars; do [ -e ${__} ] && . ${__}; done; if [ "${ARG_AS_NEEDED:-0}" -eq 1 ]\