mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 22:24:22 +00:00
71 lines
2.9 KiB
PHP
71 lines
2.9 KiB
PHP
<?php
|
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Description: Configuration file for GUI statistics grabbing program
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
// the msgfmt program path
|
|
$msgfmt="/usr/bin/msgfmt";
|
|
|
|
$branch="1.10"; //version of current stable (folder name of the checkout folder)
|
|
$wescampbranchversion="1.10";
|
|
$wescamptrunkversion="1.12";
|
|
|
|
//FIXME-GIT: this will need to be updated
|
|
$trunkbasedir="/usr/src/svn-checkouts/trunk/";
|
|
$branchbasedir="/usr/src/svn-checkouts/$branch/";
|
|
$extratbasedir="/usr/src/svn-checkouts/wescamp-i18n/branch-$wescamptrunkversion/"; //trunk addon server
|
|
$extrabbasedir="/usr/src/svn-checkouts/wescamp-i18n/branch-$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-help 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-help wesnoth-units wesnoth-multiplayer wesnoth-test wesnoth-anl wesnoth-tutorial wesnoth-manpages wesnoth-manual wesnoth-aoi wesnoth-did wesnoth-dm wesnoth-dw wesnoth-ei wesnoth-httt wesnoth-l wesnoth-low wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-tb wesnoth-thot wesnoth-trow wesnoth-tsg wesnoth-utbs";
|
|
|
|
$ignore_langs = "sr@ijekavianlatin sr@latin sr@ijekavian";
|
|
|
|
//get unofficial packages
|
|
//trunk
|
|
$packarray = array();
|
|
if ($dir = opendir($extratbasedir)) { //trunk
|
|
// PHP manual says readdir returns false on failure and that false-evaluating non-booleans may be returned on successful execution.
|
|
// Testing shows that readdir may return NULL on failure, causing infinite loops.
|
|
// For our purposes, an empty string is equivalent to a failure anyway.
|
|
while (false != ($file = readdir($dir))) {
|
|
if($file[0] != '.'){
|
|
$packarray[] = $file;
|
|
}
|
|
}
|
|
closedir($dir);
|
|
sort($packarray);
|
|
$extratpackages = implode(" ", $packarray);
|
|
}
|
|
|
|
//branch
|
|
$packarray = array();
|
|
if ($dir = opendir($extrabbasedir)) { //branch
|
|
// PHP manual says readdir returns false on failure and that false-evaluating non-booleans may be returned on successful execution.
|
|
// Testing shows that readdir may return NULL on failure, causing infinite loops.
|
|
// For our purposes, an empty string is equivalent to a failure anyway.
|
|
while (false != ($file = readdir($dir))) {
|
|
if($file[0] != '.'){
|
|
$packarray[] = $file;
|
|
}
|
|
}
|
|
closedir($dir);
|
|
sort($packarray);
|
|
$extrabpackages = implode(" ", $packarray);
|
|
}
|
|
|
|
$ignore_langs = explode(" ", $ignore_langs);
|
|
|
|
//$languages = file_get_contents($basedir . "/po/LINGUAS");
|
|
//$languages = substr($languages, 0, strlen($languages)-1);
|
|
|
|
$prog="grab-stats";
|
|
|
|
?>
|