Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 07:28:18 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244142 - projects/portbuild/scripts
Message-ID:  <201212120728.qBC7SII5088648@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer)
Date: Wed Dec 12 07:28:17 2012
New Revision: 244142
URL: http://svnweb.freebsd.org/changeset/base/244142

Log:
  Allow arch to be passed in as a parameter.  Keep "all" the default for
  backwards compatibility, although this should not be necessary.

Modified:
  projects/portbuild/scripts/do-cleanup-chroots
  projects/portbuild/scripts/do-cleanup-tmp

Modified: projects/portbuild/scripts/do-cleanup-chroots
==============================================================================
--- projects/portbuild/scripts/do-cleanup-chroots	Wed Dec 12 07:24:37 2012	(r244141)
+++ projects/portbuild/scripts/do-cleanup-chroots	Wed Dec 12 07:28:17 2012	(r244142)
@@ -1,8 +1,12 @@
 #!/bin/sh
 # 
-# clean up stale chroots on all client machines.  MCL 20081216.
+# clean up stale chroots on all client machines.
 #
 
 pbc=${PORTBUILD_CHECKOUT:-/var/portbuild}
 
-${pbc}/scripts/allgohans all -q -scp ${pbc}/scripts/cleanup-chroots
+arch=$0
+if [ -z "$arch" ]; then
+  arch=all
+fi
+${pbc}/scripts/allgohans ${arch} -q -scp ${pbc}/scripts/cleanup-chroots

Modified: projects/portbuild/scripts/do-cleanup-tmp
==============================================================================
--- projects/portbuild/scripts/do-cleanup-tmp	Wed Dec 12 07:24:37 2012	(r244141)
+++ projects/portbuild/scripts/do-cleanup-tmp	Wed Dec 12 07:28:17 2012	(r244142)
@@ -1,8 +1,12 @@
 #!/bin/sh
 # 
-# clean up stale /tmp on all client machines.  MCL 20110712.
+# clean up stale /tmp on all client machines.
 #
 
 pbc=${PORTBUILD_CHECKOUT:-/var/portbuild}
 
-${pbc}/scripts/allgohans all -q -scp ${pbc}/scripts/cleanup-tmp
+arch=$0
+if [ -z "$arch" ]; then
+  arch=all
+fi
+${pbc}/scripts/allgohans ${arch} -q -scp ${pbc}/scripts/cleanup-tmp



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