forked from Gradwell/ComponentManagerShared
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.local.xml
32 lines (31 loc) · 1.57 KB
/
build.local.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<project name="local" default="help">
<target name="help">
<echo message="This component has the following additional commands:" />
<echo message=""/>
<echo message="git-tag" />
<echo message=" Tag the current version in git" />
<echo message="" />
<echo message="git-force-tag" />
<echo message=" Force tag the current version in git (use with caution!)" />
<echo message="" />
<echo message="publish-and-push" />
<echo message=" Git push to upstream, publish to PEAR channel" />
<echo message="" />
<echo message="tpp - tag, publish, and push" />
<echo message=" Git tag, push to upstream, publish to PEAR channel" />
<echo message="" />
</target>
<target name="git-tag">
<exec command="git tag -a -m 'Release ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}' ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}" logoutput="true" checkreturn="true" />
</target>
<target name="git-force-tag">
<exec command="git tag -f -a -m 'Release ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}' ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}" logoutput="true" checkreturn="true" />
</target>
<target name="publish-and-push" depends="publish-local">
<exec command="git push --mirror" logoutput="true" checkreturn="true" />
</target>
<target name="tpp" depends="git-force-tag, publish-local">
<exec command="git push --mirror" logoutput="true" checkreturn="true" />
</target>
</project>
<!-- vim: set tabstop=2 shiftwidth=2 expandtab: -->