File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 103103 <target name =" phar-prepare" depends =" clean" >
104104 <mkdir dir =" ${ basedir } /build/phar" />
105105
106- <exec executable =" ${ basedir } /build/phar-manifest.php" output =" ${ basedir } /build/phar/manifest.txt" />
106+ <exec executable =" ${ basedir } /build/phar-manifest.php" output =" ${ basedir } /build/phar/manifest.txt" />
107107
108108 <copy file =" ${ basedir } /vendor/dropbox/dropbox-sdk/License.txt" tofile =" ${ basedir } /build/phar/dropbox/LICENSE" />
109109 <copy todir =" ${ basedir } /build/phar/dropbox" >
155155 </fileset >
156156 </copy >
157157
158+ <exec executable =" ${ basedir } /build/phar-patch.php" />
159+
158160 </target >
159161
160162
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ $ patches = array (
5+ array (
6+ 'path ' => __DIR__ . '/phar/dropbox/Curl.php ' ,
7+ 'search ' => array ('$this->set(CURLOPT_CAINFO ' , '$this->set(CURLOPT_CAPATH ' ),
8+ 'replace ' => array ('//$this->set(CURLOPT_CAINFO ' , '//$this->set(CURLOPT_CAPATH ' ),
9+ ),
10+ );
11+
12+ foreach ( $ patches as $ file ) {
13+ echo 'patching file: ' . $ file ['path ' ] . "... " ;
14+ file_put_contents (
15+ $ file ['path ' ],
16+ str_replace (
17+ $ file ['search ' ],
18+ $ file ['replace ' ],
19+ file_get_contents ($ file ['path ' ])
20+ )
21+ );
22+ echo ' done ' . PHP_EOL ;
23+ };
Original file line number Diff line number Diff line change 3434 "sebastian/version" : " ~1.0" ,
3535 "swiftmailer/swiftmailer" : " 5.3.*"
3636 },
37- "require-dev" : {
38- "squizlabs/php_codesniffer" : " 1.*"
39- },
4037 "bin" : [
4138 " phpbu"
4239 ],
You can’t perform that action at this time.
0 commit comments