DevHeads.net

com web/php: Make bin/bumpRelease relative to script, not invocation: bin/bumpRelease

Link: <a href="http://git.php.net/?p=web/php.git;a=commitdiff;h=39200fe1322f92fc5cb6beb73f164d0418a5b1e2" title="http://git.php.net/?p=web/php.git;a=commitdiff;h=39200fe1322f92fc5cb6beb73f164d0418a5b1e2">http://git.php.net/?p=web/php.git;a=commitdiff;h=39200fe1322f92fc5cb6beb...</a>

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",