Commit graph

29 commits

Author SHA1 Message Date
jenkins-bot
8c087b9fd1 Merge "Revert "Add executable rights for executable (bash) files"" 2015-08-07 07:38:00 +00:00
Southparkfan
e930012075 Revert "Add executable rights for executable (bash) files"
These are not meant to be complete shell scripts, so
shebang lines don't really make sense here. Rather, as
noted by the author (Daniel Friesen), scripts in the
parent directory include these files using the "source"
or "." command.

This reverts commit 96e0ed45a8.

Change-Id: I7a0b7bb2a5ea1b1c141cb36f38736fe562b22c10
2015-08-07 07:28:19 +00:00
MZMcBride
627ccbcd7b Minor code comment tweaks for spelling and consistency
Change-Id: I51391f45d0f81e4245ccc0e435a71ccd5b0e3ca3
2014-11-08 14:07:19 -05:00
Southparkfan
96e0ed45a8 Add executable rights for executable (bash) files
I hope these are the last ones.

Change-Id: I281531d8f90932b2cb4a8a99554d4b80607fbaee
2014-10-30 19:05:43 +00:00
rillke
c31fbf073e Unify the spelling of MIME in documentation
Writing MIME as written in Wikipedia and some documentation clean up.

Change-Id: I9dfc36d2bf55d72d9374c4075bd6d45eef0415a4
2014-08-07 23:38:45 +02:00
jenkins-bot
05b8af8b91 Merge "shell script fix using shellcheck lint" 2014-06-17 14:18:23 +00:00
Siebrand Mazeland
f2f31fadc7 Update formatting in maintenance/ (2/4)
Change-Id: I2b791d3bff0de464b6bdaaeae0622c065389c31c
2014-04-23 20:08:42 +02:00
Kartik Mistry
e10082c62b shell script fix using shellcheck lint
* shellcheck script used: https://github.com/koalaman/shellcheck
* includes/php.sh: Use $(..) instead of deprecated `..`.

Change-Id: Ie1dfff97b548aca75d76c762b74f8fcab84d46fb
2014-04-01 18:19:06 +05:30
Timo Tijhof
beb1c4a0ec phpcs: More require/include is not a function
Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81.

Also updated usage in text in documentation and the
installer LocalSettingsGenerator.

Most of them were handled by this regex:
- find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$
- replace: $1 $2;

Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
2013-05-21 23:26:28 +02:00
umherirrender
b114f5e1c1 Fixed some spacing in maintenance folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I9657f72996358f8c1c154cea1ea97970d973723c
2013-04-18 20:48:44 +02:00
Ori Livneh
6c163ad265 (Bug 37957) Replace php_sapi_name() with PHP_SAPI
The PHP_SAPI constant has been available since PHP 4.2.0. It's more
concise to use the constant and has less overhead than a function call.

Furthermore, PHP_SAPI rhymes with "happy", whereas "php_sapi_name"
rhymes with "lame". QED, etc.

Change-Id: Ie8c121cb8fcef50536af8d3f66723b458f0bf9af
2013-02-04 12:50:45 -08:00
Daniel Friesen
21b3fde565 Make maintenance/dev/'s .sh files executable.
Change-Id: I46a2611cccf9bd7af20be5fcc497c0dacc13cbb7
2012-10-14 08:50:37 -07:00
daniel
12166f46b4 merged master (2012-09-11)
Change-Id: I8e953eaa22f9d331b0af5e780fbeff6d702b23e3
2012-09-11 11:43:02 +02:00
Alexandre Emsenhuber
afd8ac8fb7 Improve documentation of maintenance scripts.
Change-Id: I768abad1ad4642263519d39c50c88437aed47e15
2012-09-07 22:03:56 +02:00
daniel
29719f846b merging latest master
Change-Id: I36b7f2f63ab8c08f8412d521dc68ea45c8b67711
2012-08-20 16:55:28 +02:00
Daniel Friesen
ccbf3af00b Followup ac8b7d54f8 fix broken php detection
Change-Id: Id78f14c220bbaa21b78c0c669a324f6169b3109d
2012-08-05 22:56:16 -07:00
Platonides
ac8b7d54f8 Improve detection of php binary.
- Add php binary and a program which might
be set as $PHP.
- Check for the correct php version.

The break shell builtin is not too commonly used,
but should beperfectly safe to use, since it's specified by POSIX
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#break

Change-Id: Iefbe991426f0e9a7178363a30b613f57110e1953
2012-08-04 10:29:23 +02:00
daniel
38da56ac78 merging incoming 2012-04-16 17:24:13 +02:00
Daniel Friesen
975acd11b2 Security paranoia, reject requests to router.php that aren't from the cli-server sapi. 2012-03-20 22:58:34 +00:00
Daniel Friesen
a776efbdfe Add missing delimiters to the regexp in maintenace/dev/'s router. 2012-02-15 19:33:13 +00:00
Daniel Friesen
c6a11daac9 Follow up r105821, as usual, commit the files I forgot to svn add 2011-12-11 19:49:16 +00:00
Daniel Friesen
856310a705 Follow up r102210:
- Update maintenance/dev/ to install php inside ~/.mediawiki/php instead of ~/.mwphp
- Tweak README a bit
- Move the router.php into an includes along with two helper .sh files to cut out some of the repetition
2011-12-11 19:45:15 +00:00
Daniel Friesen
ef47f1c0e4 Followup r103678; Add a comment. 2011-12-03 23:19:34 +00:00
Daniel Friesen
471c997505 Update maintenance/dev/'s router, add handling for things like /wiki/File:Foo.png which end up with a SCRIPT_NAME but not SCRIPT_FILENAME. 2011-11-24 09:50:22 +00:00
Daniel Friesen
750eac7e41 Modify maintenance/dev/ router code to fix the bug where post data gets discarded and you can't login inside the dev environment. 2011-11-24 08:41:57 +00:00
Daniel Friesen
84af5352ab Incorporate a router into our maintenance/dev/ code to better handle the variety of file types we support. 2011-11-19 14:14:57 +00:00
Daniel Friesen
f03373cf1e Allow for installation of php in ~/.mwphp and don't die if maintenance/dev/data already existsy 2011-11-06 23:49:16 +00:00
Daniel Friesen
92b5c31075 Followup r102201, quote all variables to guard against paths with spaces in them. 2011-11-06 23:13:36 +00:00
Daniel Friesen
9e25a8e32e Commit maintenance/dev/ a set of bash scripts that can quickly download php 5.4, install it in an isolated area, install a quick development copy of MediaWiki, and then start up a local webserver. 2011-11-06 22:50:32 +00:00