Skip to content

Commit

Permalink
fix: restore phar-building
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Sep 30, 2024
1 parent d7a10a0 commit 72ae61e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@
</target>

<target name="-phar-determine-version">
<exec command="php ${project.basedir}/phpdraft --version | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}-?(rc|beta)?[0-9]?'" outputproperty="version"/>
<exec executable="php" outputProperty="preVersion">
<arg path="${project.basedir}/phpdraft"/>
<arg value="--version"/>
</exec>
<echo message="${preVersion}"/>
<propertyregex property="version"
subject="${preVersion}"
pattern="([0-9]{1,}\.)+[0-9]{1,}-?(rc|beta)?[0-9]?"
match="$0"/>
<echo message="${version}"/>
</target>
</project>

0 comments on commit 72ae61e

Please sign in to comment.