Mercurial > hg > aboriginal
diff sources/functions.sh @ 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 | 161e2bca18f4 |
children | 4db8fc1ea338 |
line wrap: on
line diff
--- 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