Permalink
Browse files

Automatically find update triggers during build process

  • Loading branch information...
1 parent 193f273 commit 3b6600c741514838e3a8349530b8d4ecabb8cbf6 @cdujeu cdujeu committed Sep 14, 2016
Showing with 15 additions and 0 deletions.
  1. +15 −0 dist/phing/build-pydio.xml
@@ -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">
@@ -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">

0 comments on commit 3b6600c

Please sign in to comment.