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

Commit 3b6600c

Browse files
committed
Automatically find update triggers during build process
1 parent 193f273 commit 3b6600c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

dist/phing/build-pydio.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@
259259
</then>
260260
</if>
261261

262+
<phingcall target="add_update_triggers">
263+
<property name="input_folder" value="${git.local_repository}/dist/php"/>
264+
<property name="output_folder" value="${upgrade_export}/UPGRADE"/>
265+
<property name="version" value="${build.version}"/>
266+
</phingcall>
267+
262268
</target>
263269

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

334+
<target name="add_update_triggers" description="Look for pre/post triggers and append them to the package">
335+
<copy todir="${output_folder}" verbose="true">
336+
<fileset dir="${input_folder}">
337+
<include name="${version}-*-*.php"/>
338+
</fileset>
339+
<mapper type="regexp" from="^(.*)-(.*)-(.*).php" to="PHP--\3-\2.php"/>
340+
</copy>
341+
</target>
342+
328343
<target name="build_external_plugins">
329344
<foreach param="filename" absparam="absfilename" target="zip_plugin">
330345
<fileset dir="${build.working_folder}/ext_plugins">

0 commit comments

Comments
 (0)