aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance
diff options
context:
space:
mode:
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>2012-06-14 14:25:13 +0200
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>2012-06-14 14:26:37 +0200
commit9fc3afc6cdeee3407708ab01704c4fab4ac7b437 (patch)
tree750b63153043d632e2857772a484fbbc5300289c /maintenance
parentc15d0a7521231c2cb71e664265e08d0ae514fc73 (diff)
downloadmediawikicore-9fc3afc6cdeee3407708ab01704c4fab4ac7b437.tar.gz
mediawikicore-9fc3afc6cdeee3407708ab01704c4fab4ac7b437.zip
Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent. Change-Id: I8ee0861bfc2e9ff6511ad61175f1f1273739816c
Diffstat (limited to 'maintenance')
-rw-r--r--maintenance/formatInstallDoc.php16
-rw-r--r--maintenance/importSiteScripts.php16
-rw-r--r--maintenance/language/generateCollationData.php17
-rw-r--r--maintenance/locking/LockServerDaemon.php22
-rw-r--r--maintenance/proxy_check.php17
-rw-r--r--maintenance/purgeParserCache.php20
-rw-r--r--maintenance/purgeStaleMemcachedText.php17
-rw-r--r--maintenance/term/MWTerm.php27
8 files changed, 142 insertions, 10 deletions
diff --git a/maintenance/formatInstallDoc.php b/maintenance/formatInstallDoc.php
index b3bb50ca1726..fa98813f6206 100644
--- a/maintenance/formatInstallDoc.php
+++ b/maintenance/formatInstallDoc.php
@@ -1,5 +1,21 @@
<?php
/**
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
* @ingroup Maintenance
*/
diff --git a/maintenance/importSiteScripts.php b/maintenance/importSiteScripts.php
index 0dc200ec84ce..0ce93881bd4c 100644
--- a/maintenance/importSiteScripts.php
+++ b/maintenance/importSiteScripts.php
@@ -2,6 +2,22 @@
/**
* Maintenance script to import all scripts in the MediaWiki namespace from a
* local site.
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
* @file
* @ingroup Maintenance
*/
diff --git a/maintenance/language/generateCollationData.php b/maintenance/language/generateCollationData.php
index 2e4f40f61995..4cb90ffe6ade 100644
--- a/maintenance/language/generateCollationData.php
+++ b/maintenance/language/generateCollationData.php
@@ -1,5 +1,22 @@
<?php
/**
+ * Maintenance script to generate first letter data files for Collation.php.
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
* @ingroup Maintenance
* @file
*/
diff --git a/maintenance/locking/LockServerDaemon.php b/maintenance/locking/LockServerDaemon.php
index 50b939cd11cb..ba778f453bfb 100644
--- a/maintenance/locking/LockServerDaemon.php
+++ b/maintenance/locking/LockServerDaemon.php
@@ -1,12 +1,28 @@
<?php
/**
+ * Simple lock server daemon that accepts lock/unlock requests.
+ *
+ * This code should not require MediaWiki setup or PHP files.
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
* @file
* @ingroup LockManager Maintenance
*/
-/**
- * This code should not require MediaWiki setup or PHP files.
- */
if ( php_sapi_name() !== 'cli' ) {
die( "This is not a valid entry point.\n" );
}
diff --git a/maintenance/proxy_check.php b/maintenance/proxy_check.php
index 9c5f32b29c70..10892c42a4e4 100644
--- a/maintenance/proxy_check.php
+++ b/maintenance/proxy_check.php
@@ -1,6 +1,21 @@
<?php
/**
- * Command line script to check for an open proxy at a specified location
+ * Command line script to check for an open proxy at a specified location.
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
*
* @file
* @ingroup Maintenance
diff --git a/maintenance/purgeParserCache.php b/maintenance/purgeParserCache.php
index 4d775f95d970..84a2b51e7324 100644
--- a/maintenance/purgeParserCache.php
+++ b/maintenance/purgeParserCache.php
@@ -1,7 +1,25 @@
<?php
/**
- * @ingroup Maintenance
+ * Maintenance script to remove old objects from the parser cache.
+ * This only works when the parser cache is in an SQL database.
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
* @file
+ * @ingroup Maintenance
*/
require( dirname( __FILE__ ) . '/Maintenance.php' );
diff --git a/maintenance/purgeStaleMemcachedText.php b/maintenance/purgeStaleMemcachedText.php
index fc9a6a8947b9..ec7b08135ee8 100644
--- a/maintenance/purgeStaleMemcachedText.php
+++ b/maintenance/purgeStaleMemcachedText.php
@@ -1,7 +1,22 @@
<?php
/**
- * @ingroup Maintenance Memcached
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
* @file
+ * @ingroup Maintenance Memcached
*/
require_once( dirname( __FILE__ ) . '/commandLine.inc' );
diff --git a/maintenance/term/MWTerm.php b/maintenance/term/MWTerm.php
index 36fb8eec0909..ca0f95d2357e 100644
--- a/maintenance/term/MWTerm.php
+++ b/maintenance/term/MWTerm.php
@@ -1,14 +1,31 @@
<?php
-
/**
- * @ingroup Testing
- *
* Set of classes to help with test output and such. Right now pretty specific
* to the parser tests but could be more useful one day :)
*
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Testing
* @todo Fixme: Make this more generic
*/
+/**
+ * Terminal that supports ANSI escape sequences.
+ */
class AnsiTermColorer {
function __construct() {
}
@@ -37,7 +54,9 @@ class AnsiTermColorer {
}
}
-/* A colour-less terminal */
+/**
+ * A colour-less terminal
+ */
class DummyTermColorer {
public function color( $color ) {
return '';