Skip to content

Commit

Permalink
Fix phar file
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed May 27, 2019
1 parent 93c4ccf commit 4ef2c81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<include name="**/*.php"/>
</fileset>
</copy>
<copy todir="${project.basedir}/build/phar/phpdraft/src/Psr/Log">
<fileset dir="vendor/psr/log/Psr/Log">
<include name="**/*.php"/>
<exclude name="**/*Test.php*"/>
</fileset>
</copy>
<copy todir="${project.basedir}/build/phar/phpdraft">
<fileset dir="${project.basedir}">
<include name="**/phpdraft"/>
Expand Down Expand Up @@ -165,6 +171,6 @@
</target>

<target name="-phar-determine-version">
<exec command="${project.basedir}/phpdraft --version | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}'" outputproperty="version"/>
<exec command="php ${project.basedir}/phpdraft --version | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}'" outputproperty="version"/>
</target>
</project>
1 change: 1 addition & 0 deletions build/binary-phar-autoload.php.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
if (version_compare('7.1.0', PHP_VERSION, '>')) {
fwrite(
Expand Down
1 change: 0 additions & 1 deletion phpdraft
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env php
<?php
/**
* Set up include path for source handling
Expand Down

0 comments on commit 4ef2c81

Please sign in to comment.