Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update structure to make Autoload Builder be packagable by Fedora and…

… possibly other distros
  • Loading branch information...
commit 0ade5a20f370bed0fadf355ee90c006dbc801385 1 parent d44c827
Arne Blankerts authored October 15, 2012
31  LICENSE
... ...
@@ -0,0 +1,31 @@
  1
+Autoload Builder
  2
+
  3
+Copyright (c) 2010-2012 Arne Blankerts <arne@blankerts.de>
  4
+All rights reserved.
  5
+
  6
+Redistribution and use in source and binary forms, with or without modification,
  7
+are permitted provided that the following conditions are met:
  8
+
  9
+* Redistributions of source code must retain the above copyright notice,
  10
+  this list of conditions and the following disclaimer.
  11
+
  12
+* Redistributions in binary form must reproduce the above copyright notice,
  13
+  this list of conditions and the following disclaimer in the documentation
  14
+  and/or other materials provided with the distribution.
  15
+
  16
+* Neither the name of Arne Blankerts nor the names of contributors
  17
+  may be used to endorse or promote products derived from this software
  18
+  without specific prior written permission.
  19
+
  20
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT  * NOT LIMITED TO,
  22
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  23
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER ORCONTRIBUTORS
  24
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
  25
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  30
+POSSIBILITY OF SUCH DAMAGE.
  31
+
0  readme.markdown → README.md
Source Rendered
File renamed without changes
281  package.xml
... ...
@@ -1,113 +1,172 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2  
-<package packagerversion="1.4.10" version="2.0"
3  
-  xmlns="http://pear.php.net/dtd/package-2.0"
4  
-  xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
5  
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6  
-  xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
7  
-                      http://pear.php.net/dtd/tasks-1.0.xsd
8  
-                      http://pear.php.net/dtd/package-2.0
9  
-                      http://pear.php.net/dtd/package-2.0.xsd">
10  
- <name>Autoload</name>
11  
- <channel>pear.netpirates.net</channel>
12  
- <summary>A tool and library to generate autoload code.</summary>
13  
- <description>A tool and library to generate autoload code.</description>
14  
- <lead>
15  
-  <name>Arne Blankerts</name>
16  
-  <user>theseer</user>
17  
-  <email>arne@blankerts.de</email>
18  
-  <active>yes</active>
19  
- </lead>
20  
- <date>2012-07-23</date>
21  
- <version>
22  
-  <release>1.9.1</release>
23  
-  <api>1.9.0</api>
24  
- </version>
25  
- <stability>
26  
-  <release>stable</release>
27  
-  <api>stable</api>
28  
- </stability>
29  
- <license>BSD License</license>
30  
- <notes>http://github.com/theseer/Autoload/tree</notes>
31  
- <contents>
32  
-  <dir name="/">
33  
-   <dir name="TheSeer">
34  
-    <dir name="Autoload">
35  
-     <dir name="templates">
36  
-      <dir name="cs">
37  
-       <file baseinstalldir="/" name="default.php.tpl" role="php" />
38  
-       <file baseinstalldir="/" name="php52.php.tpl" role="php" />
39  
-       <file baseinstalldir="/" name="phar.php.tpl" role="php" />
40  
-      </dir>
41  
-      <dir name="ci">
42  
-       <file baseinstalldir="/" name="default.php.tpl" role="php" />
43  
-       <file baseinstalldir="/" name="php52.php.tpl" role="php" />
44  
-       <file baseinstalldir="/" name="phar.php.tpl" role="php" />
45  
-      </dir>
46  
-      <file baseinstalldir="/" name="staticphar.php.tpl" role="php" />
47  
-      <file baseinstalldir="/" name="static.php.tpl" role="php" />
48  
-     </dir>
49  
-     <file baseinstalldir="/" name="cli.php" role="php" />
50  
-     <file baseinstalldir="/" name="autoloadbuilder.php" role="php" />
51  
-     <file baseinstalldir="/" name="classfinder.php" role="php" />
52  
-     <file baseinstalldir="/" name="dependencysorter.php" role="php" />
53  
-     <file baseinstalldir="/" name="staticbuilder.php" role="php" />
54  
-     <file baseinstalldir="/" name="autoload.php" role="php" />
55  
-    </dir>
56  
-   </dir>
57  
-   <file baseinstalldir="/" name="phpab.php" role="script">
58  
-    <tasks:replace from="/usr/bin/env php" to="php_bin" type="pear-config"/>
59  
-    <tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
60  
-    <tasks:replace from="%development%" to="version" type="package-info" />
61  
-   </file>
62  
-   <file baseinstalldir="/" name="phpab.bat" role="script">
63  
-    <tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
64  
-    <tasks:replace from="@bin_dir@" to="bin_dir" type="pear-config" />
65  
-   </file>
66  
-  </dir>
67  
- </contents>
68  
- <dependencies>
69  
-  <required>
70  
-   <php>
71  
-    <min>5.3.0</min>
72  
-   </php>
73  
-   <pearinstaller>
74  
-    <min>1.8.0</min>
75  
-   </pearinstaller>
76  
-   <package>
77  
-    <name>DirectoryScanner</name>
  2
+<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.4.10" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0                       http://pear.php.net/dtd/tasks-1.0.xsd                       http://pear.php.net/dtd/package-2.0                       http://pear.php.net/dtd/package-2.0.xsd">
  3
+    <name>Autoload</name>
78 4
     <channel>pear.netpirates.net</channel>
79  
-    <min>1.1.0</min>
80  
-   </package>
81  
-   <package>
82  
-    <name>ConsoleTools</name>
83  
-    <channel>components.ez.no</channel>
84  
-    <min>1.6</min>
85  
-   </package>
86  
-   <extension>
87  
-    <name>tokenizer</name>
88  
-   </extension>
89  
-  </required>
90  
-  <optional>
91  
-   <extension>
92  
-    <name>phar</name>
93  
-   </extension>
94  
-  </optional>
95  
- </dependencies>
96  
- <phprelease>
97  
-  <installconditions>
98  
-   <os>
99  
-    <name>windows</name>
100  
-   </os>
101  
-  </installconditions>
102  
-  <filelist>
103  
-   <install as="phpab" name="phpab.php" />
104  
-   <install as="phpab.bat" name="phpab.bat" />
105  
-  </filelist>
106  
- </phprelease>
107  
- <phprelease>
108  
-  <filelist>
109  
-   <install as="phpab" name="phpab.php" />
110  
-   <ignore name="phpab.bat" />
111  
-  </filelist>
112  
- </phprelease>
113  
-</package>
  5
+    <summary>A tool and library to generate autoload code.</summary>
  6
+    <description>A tool and library to generate autoload code.</description>
  7
+    <lead>
  8
+        <name>Arne Blankerts</name>
  9
+        <user>theseer</user>
  10
+        <email>arne@blankerts.de</email>
  11
+        <active>yes</active>
  12
+    </lead>
  13
+    <date>2012-07-23</date>
  14
+    <version>
  15
+        <release>1.9.1</release>
  16
+        <api>1.9.0</api>
  17
+    </version>
  18
+    <stability>
  19
+        <release>stable</release>
  20
+        <api>stable</api>
  21
+    </stability>
  22
+    <license>BSD License</license>
  23
+    <notes>http://github.com/theseer/Autoload/tree</notes>
  24
+    <contents>
  25
+        <dir name="/">
  26
+            <dir name="TheSeer">
  27
+                <dir name="Autoload">
  28
+                    <dir name="templates">
  29
+                        <dir name="cs">
  30
+                            <file baseinstalldir="/" name="default.php.tpl" role="php"/>
  31
+                            <file baseinstalldir="/" name="php52.php.tpl" role="php"/>
  32
+                            <file baseinstalldir="/" name="phar.php.tpl" role="php"/>
  33
+                        </dir>
  34
+                        <dir name="ci">
  35
+                            <file baseinstalldir="/" name="default.php.tpl" role="php"/>
  36
+                            <file baseinstalldir="/" name="php52.php.tpl" role="php"/>
  37
+                            <file baseinstalldir="/" name="phar.php.tpl" role="php"/>
  38
+                        </dir>
  39
+                        <file baseinstalldir="/" name="staticphar.php.tpl" role="php"/>
  40
+                        <file baseinstalldir="/" name="static.php.tpl" role="php"/>
  41
+                    </dir>
  42
+                    <file baseinstalldir="/" name="cli.php" role="php"/>
  43
+                    <file baseinstalldir="/" name="autoloadbuilder.php" role="php"/>
  44
+                    <file baseinstalldir="/" name="classfinder.php" role="php"/>
  45
+                    <file baseinstalldir="/" name="dependencysorter.php" role="php"/>
  46
+                    <file baseinstalldir="/" name="staticbuilder.php" role="php"/>
  47
+                    <file baseinstalldir="/" name="autoload.php" role="php"/>
  48
+                </dir>
  49
+            </dir>
  50
+            <file baseinstalldir="/" name="phpab.php" role="script">
  51
+                <tasks:replace from="/usr/bin/env php" to="php_bin" type="pear-config"/>
  52
+                <tasks:replace from="@php_bin@" to="php_bin" type="pear-config"/>
  53
+                <tasks:replace from="%development%" to="version" type="package-info"/>
  54
+            </file>
  55
+            <file baseinstalldir="/" name="phpab.bat" role="script">
  56
+                <tasks:replace from="@php_bin@" to="php_bin" type="pear-config"/>
  57
+                <tasks:replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
  58
+            </file>
  59
+
  60
+            <file baseinstalldir="/" name="phpunit.xml.dist" role="test" />
  61
+            <dir name="tests">
  62
+                <dir name="_data">
  63
+                    <dir name="classfinder">
  64
+                        <file baseinstalldir="/" role="test" name="brackettest1.php"/>
  65
+                        <file baseinstalldir="/" role="test" name="brackettest2.php"/>
  66
+                        <file baseinstalldir="/" role="test" name="implementsextends.php"/>
  67
+                        <file baseinstalldir="/" role="test" name="interface.php"/>
  68
+                        <file baseinstalldir="/" role="test" name="multiclass.php"/>
  69
+                        <file baseinstalldir="/" role="test" name="namespace1.php"/>
  70
+                        <file baseinstalldir="/" role="test" name="namespace2.php"/>
  71
+                        <file baseinstalldir="/" role="test" name="namespace3.php"/>
  72
+                        <file baseinstalldir="/" role="test" name="namespace4.php"/>
  73
+                        <file baseinstalldir="/" role="test" name="namespace5.php"/>
  74
+                        <file baseinstalldir="/" role="test" name="namespace6.php"/>
  75
+                        <file baseinstalldir="/" role="test" name="namespace7.php"/>
  76
+                        <file baseinstalldir="/" role="test" name="noclass.php"/>
  77
+                        <file baseinstalldir="/" role="test" name="class.php"/>
  78
+                        <file baseinstalldir="/" role="test" name="namespaceconstant.php"/>
  79
+                        <file baseinstalldir="/" role="test" name="parseerror1.php"/>
  80
+                        <file baseinstalldir="/" role="test" name="parseerror2.php"/>
  81
+                        <file baseinstalldir="/" role="test" name="parseerror3.php"/>
  82
+                        <file baseinstalldir="/" role="test" name="parseerror4.php"/>
  83
+                        <file baseinstalldir="/" role="test" name="redeclaration.php"/>
  84
+                        <file baseinstalldir="/" role="test" name="trait0.php"/>
  85
+                        <file baseinstalldir="/" role="test" name="trait1.php"/>
  86
+                        <file baseinstalldir="/" role="test" name="trait2.php"/>
  87
+                        <file baseinstalldir="/" role="test" name="trait3.php"/>
  88
+                        <file baseinstalldir="/" role="test" name="extends.php"/>
  89
+                        <file baseinstalldir="/" role="test" name="implements1.php"/>
  90
+                        <file baseinstalldir="/" role="test" name="implements2.php"/>
  91
+                        <file baseinstalldir="/" role="test" name="implements3.php"/>
  92
+                        <file baseinstalldir="/" role="test" name="interfaceextends1.php"/>
  93
+                        <file baseinstalldir="/" role="test" name="interfaceextends2.php"/>
  94
+                        <file baseinstalldir="/" role="test" name="namespace8.php"/>
  95
+                        <file baseinstalldir="/" role="test" name="parseerror5.php"/>
  96
+                        <file baseinstalldir="/" role="test" name="trait4.php"/>
  97
+                        <file baseinstalldir="/" role="test" name="use1.php"/>
  98
+                        <file baseinstalldir="/" role="test" name="use2.php"/>
  99
+                        <file baseinstalldir="/" role="test" name="use3.php"/>
  100
+                        <file baseinstalldir="/" role="test" name="use4.php"/>
  101
+                        <file baseinstalldir="/" role="test" name="use5.php"/>
  102
+                        <file baseinstalldir="/" role="test" name="use6.php"/>
  103
+                        <file baseinstalldir="/" role="test" name="use7.php"/>
  104
+                        <file baseinstalldir="/" role="test" name="use8.php"/>
  105
+                    </dir>
  106
+                    <dir name="templates">
  107
+                        <file baseinstalldir="/" role="test" name="simple.php"/>
  108
+                    </dir>
  109
+                    <dir name="dependency">
  110
+                        <file baseinstalldir="/" role="test" name="file1.php"/>
  111
+                        <file baseinstalldir="/" role="test" name="file2.php"/>
  112
+                        <file baseinstalldir="/" role="test" name="ns01.php"/>
  113
+                        <file baseinstalldir="/" role="test" name="ns02.php"/>
  114
+                        <file baseinstalldir="/" role="test" name="ns11.php"/>
  115
+                        <file baseinstalldir="/" role="test" name="ns12.php"/>
  116
+                    </dir>
  117
+                </dir>
  118
+                <file baseinstalldir="/" role="test" name="autoloadbuilder.test.php"/>
  119
+                <file baseinstalldir="/" role="test" name="classdependencysorter.test.php"/>
  120
+                <file baseinstalldir="/" role="test" name="init.php"/>
  121
+                <file baseinstalldir="/" role="test" name="classfinder.test.php"/>
  122
+            </dir>
  123
+            <file baseinstalldir="/" name="README.md" role="doc" />
  124
+            <file baseinstalldir="/" name="LICENSE" role="doc" />
  125
+        </dir>
  126
+    </contents>
  127
+    <dependencies>
  128
+        <required>
  129
+            <php>
  130
+                <min>5.3.0</min>
  131
+            </php>
  132
+            <pearinstaller>
  133
+                <min>1.8.0</min>
  134
+            </pearinstaller>
  135
+            <package>
  136
+                <name>DirectoryScanner</name>
  137
+                <channel>pear.netpirates.net</channel>
  138
+                <min>1.1.0</min>
  139
+            </package>
  140
+            <package>
  141
+                <name>ConsoleTools</name>
  142
+                <channel>components.ez.no</channel>
  143
+                <min>1.6</min>
  144
+            </package>
  145
+            <extension>
  146
+                <name>tokenizer</name>
  147
+            </extension>
  148
+        </required>
  149
+        <optional>
  150
+            <extension>
  151
+                <name>phar</name>
  152
+            </extension>
  153
+        </optional>
  154
+    </dependencies>
  155
+    <phprelease>
  156
+        <installconditions>
  157
+            <os>
  158
+                <name>windows</name>
  159
+            </os>
  160
+        </installconditions>
  161
+        <filelist>
  162
+            <install as="phpab" name="phpab.php"/>
  163
+            <install as="phpab.bat" name="phpab.bat"/>
  164
+        </filelist>
  165
+    </phprelease>
  166
+    <phprelease>
  167
+        <filelist>
  168
+            <install as="phpab" name="phpab.php"/>
  169
+            <ignore name="phpab.bat"/>
  170
+        </filelist>
  171
+    </phprelease>
  172
+</package>
4  pear.sh
@@ -2,9 +2,11 @@
2 2
 rm -f Autoload*.tgz
3 3
 mkdir -p tmp/TheSeer/Autoload
4 4
 cp -r src/* tmp/TheSeer/Autoload
5  
-cp package.xml tmp
  5
+cp package.xml phpunit.xml.dist LICENSE README.md tmp
  6
+cp -r tests tmp
6 7
 cp phpab.* tmp
7 8
 cd tmp
  9
+php ../../DirectoryScanner/samples/pear-package.php ../package.xml . | xmllint --format - > package.xml
8 10
 pear package
9 11
 mv Autoload*.tgz ..
10 12
 cd ..

0 notes on commit 0ade5a2

Please sign in to comment.
Something went wrong with that request. Please try again.