Commit:    34cc3b478565641e9c38d9d84fa297dd03c25da6
Author:    Anatol Belski <[email protected]>         Wed, 22 Apr 2015 13:51:10 +0200
Parents:   a6900122e41bc30562416d513dfaa295b5571daf
Branches:  master pecl_legacy

Link:       
http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=34cc3b478565641e9c38d9d84fa297dd03c25da6

Log:
basic files to start on the pickle build development

Changed paths:
  A  client/include/Pickle.php
  A  client/include/PickleBuild.php
  A  client/include/PickleExt.php
  A  client/script/packagist.php


Diff:
diff --git a/client/include/Pickle.php b/client/include/Pickle.php
new file mode 100644
index 0000000..f06b924
--- /dev/null
+++ b/client/include/Pickle.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace rmtools;
+
+include __DIR__ . '/BranchConfig.php';
+
+class Pickle
+{
+       
+       protected $pickle_phar = 'c:\apps\bin\pickle.phar';
+
+       public function __construct($pickle = NULL)
+       {
+               if ($pickle) {
+                       $this->pickle_phar = $pickle;
+               }
+       }
+}
+
diff --git a/client/include/PickleBuild.php b/client/include/PickleBuild.php
new file mode 100644
index 0000000..f325594
--- /dev/null
+++ b/client/include/PickleBuild.php
@@ -0,0 +1,36 @@
+<?php
+
+namespace rmtools;
+
+class PickleBuild
+{
+       protected $config_path;
+
+
+       public function __construct($config_path)
+       {
+               if (!file_exists($config_path)) {
+                       throw new \Exception("'$config_path' doesn't exist");
+               }
+               $this->config_path = $config_path;
+       }
+
+
+       public function phpize()
+       {
+
+       }
+
+       public function configure()
+       {
+
+       }
+
+       public function make()
+       {
+
+       }
+
+
+}
+
diff --git a/client/include/PickleExt.php b/client/include/PickleExt.php
new file mode 100644
index 0000000..53d6363
--- /dev/null
+++ b/client/include/PickleExt.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace rmtools;
+
+class PickleExt
+{
+       protected $name;
+       protected $version;
+       protected $pkg_uri;
+       protected $lic_fnames = array();
+       protected $zip_cmd = 'c:\php-sdk\bin\zip.exe';
+       protected $unzip_cmd = 'c:\php-sdk\bin\unzip.exe';
+       protected $deplister_cmd = 'c:\apps\bin\deplister.exe';
+       protected $pickle_phar = 'c:\apps\bin\pickle.phar';
+       protected $composer_json = NULL;
+       protected $composer_json_path = NULL;
+
+       public function __construct($pkg_uri)
+       {
+               $this->pkg_uri = $pkg_uri;
+       }
+}
+
diff --git a/client/script/packagist.php b/client/script/packagist.php
new file mode 100644
index 0000000..6c9b5f4
--- /dev/null
+++ b/client/script/packagist.php
@@ -0,0 +1,20 @@
+<?php
+
+include __DIR__ . '/../data/config.php';
+include __DIR__ . '/../include/Pickle.php';
+include __DIR__ . '/../include/Tools.php';
+//include __DIR__ . '/../include/PackagistExt.php';
+
+use rmtools as rm;
+
+
+/* parametrize */
+$branch_name = "packagist55";
+
+$config_path = __DIR__ . '/../data/config/packagist/' . $branch_name . '.ini';
+
+$pickle = new rm\Pickle();
+var_dump($pickle);
+
+exit(0);
+


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

Reply via email to