61 lines
2.1 KiB
PHP

<?php
////////////////////////////////////////////////////////////////////////////
// $Id: grab-config.php,v 1.4 2003/08/12 20:01:30 claudiuc Exp $
//
// Description: Configuration file for GUI statistics grabbing program
//
////////////////////////////////////////////////////////////////////////////
// the msgfmt program path
$msgfmt="/usr/bin/msgfmt";
$branch="1.6"; //version of current stable (folder name of the checkout folder)
$wescampbranchversion="1.6";
$wescamptrunkversion="1.7";
$trunkbasedir="/usr/src/svn-checkouts/trunk/";
$branchbasedir="/usr/src/svn-checkouts/$branch/";
$extratbasedir="/usr/src/svn-checkouts/wescamp-i18n/branches/$wescamptrunkversion/"; //trunk addon server
$extrabbasedir="/usr/src/svn-checkouts/wescamp-i18n/branches/$wescampbranchversion/"; //branch addon server
//$packages = file_get_contents($basedir . "/po/DOMAINS");
//$packages = substr($packages, 0, strlen($packages)-1);
$corepackages = "wesnoth wesnoth-lib wesnoth-editor wesnoth-units wesnoth-multiplayer wesnoth-tutorial";
//$packages = trim(system("grep ^SUBDIRS " . $basedir . "/po/Makefile.am | cut -d= -f2"));
$packages = "wesnoth wesnoth-lib wesnoth-editor wesnoth-units wesnoth-multiplayer wesnoth-test wesnoth-anl wesnoth-tutorial wesnoth-manpages wesnoth-manual wesnoth-aoi wesnoth-did wesnoth-dm wesnoth-ei wesnoth-httt wesnoth-l wesnoth-low wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-tb wesnoth-thot wesnoth-trow wesnoth-tsg wesnoth-utbs";
//get unofficial packages
//trunk
$packarray = array();
$dir = opendir($extratbasedir); //trunk
while (false !== ($file = readdir($dir))) {
if($file[0] != '.'){
$packarray[] = $file;
}
}
closedir($dir);
sort($packarray);
$extratpackages = implode(" ", $packarray);
//branch
$packarray = array();
$dir = opendir($extrabbasedir); //branch
while (false !== ($file = readdir($dir))) {
if($file[0] != '.'){
$packarray[] = $file;
}
}
closedir($dir);
sort($packarray);
$extrabpackages = implode(" ", $packarray);
//$languages = file_get_contents($basedir . "/po/LINGUAS");
//$languages = substr($languages, 0, strlen($languages)-1);
$prog="grab-stats";
?>