svn commit: r243160 - projects/portbuild/scripts
Mark Linimon
linimon at FreeBSD.org
Fri Nov 16 19:42:36 UTC 2012
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
More information about the svn-src-projects
mailing list