Commit:    3c8f4b2db635f31144347d657d1bab7e9b3e8a53
Author:    Anatol Belski <[email protected]>         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';


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to