4 * FusionForge source control management
6 * Copyright 2009, Roland Mas
8 * This file is part of FusionForge.
10 * FusionForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published
12 * by the Free Software Foundation; either version 2 of the License,
13 * or (at your option) any later version.
15 * FusionForge is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with FusionForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 require (dirname(__FILE__).'/../www/env.inc.php');
27 require_once $gfwww.'include/pre.php';
28 require_once $gfcommon.'include/cron_utils.php';
31 require_once $gfcommon.'include/Plugin.class.php' ;
32 require_once $gfcommon.'include/PluginManager.class.php' ;
34 // SCM-specific plugins subsystem
35 require_once $gfcommon.'include/SCMPlugin.class.php' ;
37 setup_plugin_manager () ;
39 $res = db_query_params ('SELECT group_id FROM groups WHERE status=$1 AND use_scm=1 ORDER BY group_id DESC',
42 $this->setError('Unable to get list of projects using SCM: '.db_error());
46 while ($data = db_fetch_array ($res)) {
47 $hook_params = array ('group_id' => $data['group_id']) ;
48 plugin_hook ('scm_generate_snapshots', $hook_params) ;
53 // c-file-style: "bsd"