Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Automatically find update triggers during build process
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 14, 2016
1 parent 193f273 commit 3b6600c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dist/phing/build-pydio.xml
Expand Up @@ -259,6 +259,12 @@
</then>
</if>

<phingcall target="add_update_triggers">
<property name="input_folder" value="${git.local_repository}/dist/php"/>
<property name="output_folder" value="${upgrade_export}/UPGRADE"/>
<property name="version" value="${build.version}"/>
</phingcall>

</target>

<target name="zip" description="Package as Zip archive">
Expand Down Expand Up @@ -325,6 +331,15 @@
><fileset dir="${build.working_folder}/upgrade/export/" defaultexcludes="false"><include name="*/**"/></fileset></zip>
</target>

<target name="add_update_triggers" description="Look for pre/post triggers and append them to the package">
<copy todir="${output_folder}" verbose="true">
<fileset dir="${input_folder}">
<include name="${version}-*-*.php"/>
</fileset>
<mapper type="regexp" from="^(.*)-(.*)-(.*).php" to="PHP--\3-\2.php"/>
</copy>
</target>

<target name="build_external_plugins">
<foreach param="filename" absparam="absfilename" target="zip_plugin">
<fileset dir="${build.working_folder}/ext_plugins">
Expand Down

0 comments on commit 3b6600c

Please sign in to comment.