Adding an aggregate updater script
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 20 Feb 2006 20:45:23 +0000 (20:45 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 20 Feb 2006 20:45:23 +0000 (20:45 +0000)
update.sh.php [new file with mode: 0644]

diff --git a/update.sh.php b/update.sh.php
new file mode 100644 (file)
index 0000000..f2a35b1
--- /dev/null
@@ -0,0 +1,46 @@
+#!/usr/bin/php
+<?php
+/*=====================================================================*\
+|| ###################################################################
+|| # ViewSVN [#]version[#]
+|| # Copyright ©2002-[#]year[#] Iris Studios, Inc.
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+define('PATH_OVERRIDE', 1);
+
+require_once('./global.php');
+
+// ###################################################################
+
+foreach ($viewsvn->repos->fetch_list() AS $repos)
+{
+       if ($repos != $argv[1])
+       {
+               continue;
+       }
+       
+       $controller = new Controller($repos);
+       $controller->cachev->exec_build();
+}
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file