tAdd $REPO variable for built packs - mkports - recipes for building multiple softwares with mk(1)
 (HTM) git clone git://z3bra.org/mkports
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 6ead52508268ed0852fc9eedf141475384a9bf01
 (DIR) parent 24078e508f434eed6094444591a87d66b4c0307a
 (HTM) Author: z3bra <willyatmailoodotorg>
       Date:   Wed, 20 Apr 2016 13:37:19 +0200
       
       Add $REPO variable for built packs
       
       Packs will now be created in ${REPO} instead if ${srcdir}.
       This allow a finer control, and leave more room for fully
       automated builds.
       To get the old behavior back, simply use:
       
           REPO = `{pwd}
       
       Diffstat:
         M config.mk                           |       1 +
         M default.mk                          |       7 ++++---
       
       2 files changed, 5 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/config.mk b/config.mk
       t@@ -2,6 +2,7 @@
        #CROSS = /opt/cross/${TOOLCHAIN_TRIPLET}
        #PATH  = ${CROSS}/bin:${PATH}
        ROOT  = /ns/distro/fs
       +REPO  = /ns/distro/pm/repo
        NPROC = 8
        workdir = `{printf '/tmp/mkports/%s-%s' "$pkg" "$(id -u)"}
        
 (DIR) diff --git a/default.mk b/default.mk
       t@@ -7,7 +7,8 @@ archive = `{basename $url 2>/dev/null || echo /dev/null}
        # create a pack from an chroot install (see the "install" target)
        $pkg\#$ver.tar.bz2: fetch patch build install cleanup
                cd $destdir
       -        tar -c `ls` | bzip2 -c > $srcdir/$pkg\#$ver.tar.bz2
       +        mkdir -p ${REPO}
       +        tar -c `ls` | bzip2 -c > ${REPO}/$pkg\#$ver.tar.bz2
        
        # recipe trying to follow the most common pattern in software
        # building
       t@@ -88,4 +89,4 @@ clean:V:
        
        # remove the pack
        distclean:V: clean
       -        rm -f $srcdir/$pkg#$ver.tar.bz2
       -\ No newline at end of file
       +        rm -f ${REPO}/$pkg#$ver.tar.bz2
       +\ No newline at end of file