Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 19:42:35 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r243160 - projects/portbuild/scripts
Message-ID:  <201211161942.qAGJgZV0051101@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer)
Date: Fri Nov 16 19:42:35 2012
New Revision: 243160
URL: http://svnweb.freebsd.org/changeset/base/243160

Log:
  Now that this is tested, enable svn and zfs.  Add the one level of anti-
  foot-shooting forgotten earlier.

Modified:
  projects/portbuild/scripts/updatesnap.ports

Modified: projects/portbuild/scripts/updatesnap.ports
==============================================================================
--- projects/portbuild/scripts/updatesnap.ports	Fri Nov 16 19:41:55 2012	(r243159)
+++ projects/portbuild/scripts/updatesnap.ports	Fri Nov 16 19:42:35 2012	(r243160)
@@ -55,12 +55,19 @@ if [ ! -d ${head} ]; then
   chmod -R g+w ${head}
 fi
 
-cd ${head}
-fulldate=$(date)
+# create /a/snap/ports-head/ports/ if not already there
 if [ ! -d ${head}/ports ]; then
+  echo "creating new ports-head/ports directory using ${head}/ports"
   mkdir ${head}/ports || finish 1
+  echo "zfs create -o mountpoint=${head}/ports ${zhead}/ports"
+  zfs create -o mountpoint=${head}/ports ${zhead}/ports || finish 1
+  chown -R portmgr:portmgr ${head}/ports
+  chmod -R g+w ${head}/ports
 fi
-if [ ! -d .svn ]; then
+
+cd ${head}
+fulldate=$(date)
+if [ ! -d ${head}/ports/.svn ]; then
   if [ $VERBOSE ]; then
       echo "svn checkout svn://svn.freebsd.org/ports/head ${head}/ports"
   fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211161942.qAGJgZV0051101>