-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathbuild.xml
More file actions
66 lines (52 loc) · 1.83 KB
/
build.xml
File metadata and controls
66 lines (52 loc) · 1.83 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<!--
kissy docs 构建文件
@author yiminghe@gmail.com
-->
<project name="kissy-docs-build"
default="sync" xmlns:ac="antlib:net.sf.antcontrib">
<description>KISSY Docs Build File</description>
<property name="git.origin" value="origin"/>
<property name="git.remote" value="remote"/>
<property name="git.master" value="master"/>
<property name="git.dev" value="dev"/>
<target name="make">
<exec executable="cmd"
failonerror="true">
<arg line="/c make1.4.bat"/>
</exec>
</target>
<target name="sync">
<input addproperty="git.commit.message">
git commit message :
</input>
<ac:if>
<not>
<equals arg1="${git.commit.message}" arg2="">
</equals>
</not>
<ac:then>
<exec executable="cmd"
failonerror="true">
<arg line="/c git add ."/>
</exec>
<exec executable="cmd" failonerror="true">
<arg line="/c git commit -am '${git.commit.message}'"/>
</exec>
</ac:then>
</ac:if>
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.origin} ${git.dev}:${git.dev}"/>
</exec>
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.origin} ${git.dev}:${git.master}"/>
</exec>
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.remote} ${git.dev}:${git.dev}"/>
</exec>
<!--push master to gh-pages also-->
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.remote} ${git.dev}:${git.master}"/>
</exec>
</target>
</project>