From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qy0-f172.google.com ([209.85.216.172]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1R80o9-0002zw-Lu for ptxdist@pengutronix.de; Mon, 26 Sep 2011 04:20:40 +0200 Received: by qyk32 with SMTP id 32so9354990qyk.10 for ; Sun, 25 Sep 2011 19:20:28 -0700 (PDT) From: Jon Ringle Date: Sun, 25 Sep 2011 22:17:36 -0400 Message-Id: <1317003456-14464-1-git-send-email-jon@ringle.org> In-Reply-To: <20110922084110.GZ27632@pengutronix.de> References: <20110922084110.GZ27632@pengutronix.de> Subject: [ptxdist] [PATCH] ptxdist: allow PTXDIST_PTXRC_DEFAULT to be set from environment Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Jon Ringle --- bin/ptxdist | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ptxdist b/bin/ptxdist index 06e28fc..900af0f 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -17,7 +17,7 @@ PTXDIST_PLATFORMCONFIG_DEFAULT='${PTXDIST_WORKSPACE}/selected_platformconfig' PTXDIST_PLATFORMCONFIG_FALLBACK='${PTXDIST_WORKSPACE}/configs/*/platformconfig' PTXDIST_COLLECTIONCONFIG_DEFAULT='${PTXDIST_WORKSPACE}/selected_collectionconfig' PTXDIST_TOOLCHAIN_DEFAULT='${PTXDIST_WORKSPACE}/selected_toolchain' -PTXDIST_PTXRC_DEFAULT='${HOME}/.ptxdist/ptxdistrc-${PTXDIST_VERSION_PTXRC}' +PTXDIST_PTXRC_DEFAULT=${PTXDIST_PTXRC:-'${HOME}/.ptxdist/ptxdistrc-${PTXDIST_VERSION_PTXRC}'} # @@ -2149,7 +2149,7 @@ setup_env() { unset $(/usr/bin/env | \ sed -n -e "s/^\([^=[:space:]]\+\)=.*$/\1/p" | \ - egrep -v "^(PTX_AUTOBUILD_DESTDIR|CCACHE_.*|PWD|HOME|USER|PATH|TERM|COLUMNS|LINES|DISPLAY|http_proxy|ftp_proxy${whitelist})$" ) + egrep -v "^(PTXDIST_PTXRC|PTX_AUTOBUILD_DESTDIR|CCACHE_.*|PWD|HOME|USER|PATH|TERM|COLUMNS|LINES|DISPLAY|http_proxy|ftp_proxy${whitelist})$" ) ######## the environment is clean now ######## -- 1.7.0.4 -- ptxdist mailing list ptxdist@pengutronix.de