com web/php: Make bin/bumpRelease relative to script, not invocation: bin/bumpRelease
| From: | Sara Golemon | Date: | Tue, 09 Jul 2019 13:33:43 +0000 |
| Subject: | com web/php: Make bin/bumpRelease relative to script, not invocation: bin/bumpRelease | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28215@lists.php.net to get a copy of this message | ||
Commit: 39200fe1322f92fc5cb6beb73f164d0418a5b1e2
Author: Sara Golemon <pollita@php.net> Tue, 9 Jul 2019 09:33:43 -0400
Parents: 3766aae3cb372e923ee9fc403ca7b75b66959333
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=39200fe1322f92fc5cb6beb73f164d0418a5b1e2
Log:
Make bin/bumpRelease relative to script, not invocation
Changed paths:
M bin/bumpRelease
Diff:
diff --git a/bin/bumpRelease b/bin/bumpRelease
index 477a9a1..92aa583 100755
--- a/bin/bumpRelease
+++ b/bin/bumpRelease
@@ -2,8 +2,8 @@
<?php
PHP_SAPI == 'cli' or die("Please run this script using the cli sapi");
-require "include/version.inc";
-require "include/releases.inc";
+require __DIR__ . "/../include/version.inc";
+require __DIR__ . "/.../include/releases.inc";
if ($_SERVER['argc'] < 1) {
fwrite(STDERR, "Usage: {$_SERVER['argv'][0]} major_version [ minor_version
]\n");
@@ -36,7 +36,7 @@ $OLDRELEASES[$major] = array_merge(
$OLDRELEASES[$major]
);
-file_put_contents("include/releases.inc", [
+file_put_contents(__DIR__ . "/../include/releases.inc", [
"<?php\n\$OLDRELEASES = ",
var_export($OLDRELEASES, true),
";\n",