com web/rmtools: basic arguments for the pickle builder script: client/script/pickle.php
| From: | Anatol Belski | Date: | Tue, 05 May 2015 19:54:50 +0000 |
| Subject: | com web/rmtools: basic arguments for the pickle builder script: client/script/pickle.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26008@lists.php.net to get a copy of this message | ||
Commit: 3c8f4b2db635f31144347d657d1bab7e9b3e8a53
Author: Anatol Belski <ab@php.net> Tue, 5 May 2015 21:54:50 +0200
Parents: 0dc523add351f03b05784fb3f90c3c83f8e0249c
Branches: master pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=3c8f4b2db635f31144347d657d1bab7e9b3e8a53
Log:
basic arguments for the pickle builder script
Changed paths:
M client/script/pickle.php
Diff:
diff --git a/client/script/pickle.php b/client/script/pickle.php
index 5c9acf7..7cc0a01 100644
--- a/client/script/pickle.php
+++ b/client/script/pickle.php
@@ -8,9 +8,16 @@ include __DIR__ . '/../include/PickleExt.php';
use rmtools as rm;
-/* parametrize */
-$branch_name = "pickle70";
-$pkg_path = "c:\\tmp\\varnish-1.2.1.tgz";
+$longopts = array("config:", "package:", "upload",
"is-snap", "first", "last");
+
+$options = getopt(NULL, $longopts);
+
+$branch_name = isset($options['config']) ? $options['config'] : NULL;
+$pkg_path = isset($options['package']) ? $options['package'] : NULL;
+$upload = isset($options['upload']);
+$is_snap = isset($options['is-snap']);
+$is_last_run = isset($options['last']);
+$is_first_run = isset($options['first']);
$config_path = __DIR__ . '/../data/config/pickle/' . $branch_name . '.ini';