From f65d3cb63bf8e07ef74434b3169f631f906d3a6f Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Mon, 14 Aug 2006 18:45:31 +0000 Subject: [PATCH] Making configurable the top-level sources build directory. --- BLFS/envars.conf | 10 ++++++++-- BLFS/libs/scripts.xsl | 8 ++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/BLFS/envars.conf b/BLFS/envars.conf index 30c2472..e4b5a48 100644 --- a/BLFS/envars.conf +++ b/BLFS/envars.conf @@ -4,7 +4,7 @@ # # $Id$ # -# Set default SRC_ARCHIVE and FTP_DIR +# Set default envars used in the build scripts # ##### @@ -14,9 +14,15 @@ # if the user has the right priviledges. export SRC_ARCHIVE=$SRC_ARCHIVE -# --- Server used if the file isn't found in SRC_ARCHIVE. +#--- Server used if the file isn't found in SRC_ARCHIVE. # As a last resort, the file will dowloaded from upstream, if possible. # # The server path MUST be set as listed in # http://www.linuxfromscratch.org/blfs/download.html export FTP_SERVER=ftp://anduin.linuxfromscratch.org/BLFS/ + + +#--- The sources directory. +# Full path to the top level directory where packages will be stored, +# unpacked, and compiled. +export SRC_DIR=$HOME/sources diff --git a/BLFS/libs/scripts.xsl b/BLFS/libs/scripts.xsl index 6f37254..46f1c8f 100644 --- a/BLFS/libs/scripts.xsl +++ b/BLFS/libs/scripts.xsl @@ -97,14 +97,14 @@ PKG_DIR= - + SRC_DIR=$SRC_DIR - cd ~/sources/$PKG_DIR + cd $SRC_DIR/$PKG_DIR rm -rf $UNPACKDIR unpacked @@ -125,8 +125,8 @@ - mkdir -p ~/sources/$PKG_DIR - cd ~/sources/$PKG_DIR + mkdir -p $SRC_DIR/$PKG_DIR + cd $SRC_DIR/$PKG_DIR