Date: Wed, 12 Dec 2012 13:33:12 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r244152 - projects/portbuild/scripts Message-ID: <201212121333.qBCDXCjN059436@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer) Date: Wed Dec 12 13:33:11 2012 New Revision: 244152 URL: http://svnweb.freebsd.org/changeset/base/244152 Log: Also create lockfiles/ subdir here, if needed. Modified: projects/portbuild/scripts/build Modified: projects/portbuild/scripts/build ============================================================================== --- projects/portbuild/scripts/build Wed Dec 12 13:27:13 2012 (r244151) +++ projects/portbuild/scripts/build Wed Dec 12 13:33:11 2012 (r244152) @@ -134,7 +134,7 @@ do_create() { ln -sf ${builddir} ${pbab}/builds/latest # create clients/ directory if it does not already exist - clientsdir=${pbd}/${arch}/clients + clientsdir=${pbab}/clients if [ ! -d ${clientsdir} ]; then mkdir -p ${clientsdir} || exit 1 chown -R ${uid}:${gid} ${clientsdir} @@ -142,15 +142,23 @@ do_create() { fi # create loads/ directory if it does not already exist - loadsdir=${pbd}/${arch}/loads + loadsdir=${pbab}/loads if [ ! -d ${loadsdir} ]; then mkdir -p ${loadsdir} || exit 1 chown -R ${uid}:${gid} ${loadsdir} chmod -R g+w ${loadsdir} fi + # create lockfiles/ directory if it does not already exist + lockfiles=${pbab}/lockfiles + if [ ! -d ${lockfiles} ]; then + mkdir -p ${lockfiles} || exit 1 + chown -R ${uid}:${gid} ${lockfiles} + chmod -R g+w ${lockfiles} + fi + # create empty mlist file if it does not already exist - mlist=${pbd}/${arch}/mlist + mlist=${pbab}/mlist if [ ! -d ${mlist} ]; then touch ${mlist} || exit 1 chown -R ${uid}:${gid} ${mlist}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212121333.qBCDXCjN059436>