svn commit: r244142 - projects/portbuild/scripts
Mark Linimon
linimon at FreeBSD.org
Wed Dec 12 07:28:18 UTC 2012
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
More information about the svn-src-projects
mailing list