mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 16:31:53 +00:00
Standardize release script names, add cli execution guards.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1036 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
b3a599e8c2
commit
67fab710bf
@ -3,6 +3,11 @@
|
|||||||
// Merges in changes from trunk to strict branch
|
// Merges in changes from trunk to strict branch
|
||||||
// WORKING COPY MUST BE POINTED TO STRICT BRANCH
|
// WORKING COPY MUST BE POINTED TO STRICT BRANCH
|
||||||
|
|
||||||
|
if (php_sapi_name() != 'cli') {
|
||||||
|
echo 'Release script cannot be called from web-browser.';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
require 'svn.php';
|
require 'svn.php';
|
||||||
|
|
||||||
$svn_info = svn_info('.');
|
$svn_info = svn_info('.');
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
// Tags releases
|
// Tags releases
|
||||||
|
|
||||||
|
if (php_sapi_name() != 'cli') {
|
||||||
|
echo 'Release script cannot be called from web-browser.';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
require 'svn.php';
|
require 'svn.php';
|
||||||
|
|
||||||
$svn_info = svn_info('.');
|
$svn_info = svn_info('.');
|
||||||
|
Loading…
Reference in New Issue
Block a user