Mercurial > hg > aboriginal
changeset 623:6f7f4d9011af
Add SNAPSHOT_SYMLINK option so extracted source packages can live in a different filesystem than the build directory.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 16 Feb 2009 15:32:29 -0600 |
parents | fcecc8d854ea |
children | 7641e1038cb6 |
files | config sources/functions.sh |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/config Sun Feb 15 05:31:26 2009 -0600 +++ b/config Mon Feb 16 15:32:29 2009 -0600 @@ -37,6 +37,13 @@ # export SYSIMAGE_HDA_MEGS=64 +# Set this to use symlinks instead of hard links when creating temporary copies +# of the source packages (in setupfor). This is slower and uses more inodes, +# but allows the extracted source packages to live in a different filesystem +# than the build directory. + +# export SNAPSHOT_SYMLINK=1 + # If this is set, try downloading packages from this location first. # export PREFERRED_MIRROR=http://landley.net/code/firmware/mirror
--- a/sources/functions.sh Sun Feb 15 05:31:26 2009 -0600 +++ b/sources/functions.sh Mon Feb 16 15:32:29 2009 -0600 @@ -304,6 +304,8 @@ fi export CURSRC="${WORK}/${CURSRC}" + [ -z "$SNAPSHOT_SYMLINK" ] && LINKTYPE="l" || LINKTYPE="s" + # Announce package, with easy-to-grep-for "===" marker. echo "=== Building $PACKAGE ($ARCH_NAME)" @@ -314,7 +316,7 @@ rm -rf "${CURSRC}" || dienow fi mkdir -p "${CURSRC}" && - cp -lfR "${SRCTREE}/$PACKAGE/"* "${CURSRC}" + cp -${LINKTYPE}fR "${SRCTREE}/$PACKAGE/"* "${CURSRC}" [ $? -ne 0 ] && dienow