Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71d0970
commit 1c4f317
Showing
6 changed files
with
119 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import sys | ||
from ... import microbuild | ||
|
||
@microbuild.task() | ||
def clean(): | ||
"""Clean build directory.""" | ||
|
||
print "clean" | ||
|
||
@microbuild.task(clean) | ||
def html(): | ||
"""Generate HTML.""" | ||
|
||
print "html" | ||
|
||
@microbuild.task(clean) | ||
@microbuild.ignore | ||
def images(): | ||
"""Prepare images. Should be ignored.""" | ||
|
||
raise Exception("This task should have been ignored.") | ||
|
||
@microbuild.task(clean,html,images) | ||
def android(): | ||
"""Package Android app.""" | ||
|
||
print "android" | ||
|
||
if __name__ == "__main__": | ||
microbuild.build(sys.modules[__name__],sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import sys | ||
from ... import microbuild | ||
|
||
@microbuild.task() | ||
def clean(): | ||
"""Clean build directory.""" | ||
|
||
print "clean" | ||
|
||
@microbuild.task(clean) | ||
def html(): | ||
"""Generate HTML.""" | ||
|
||
print "html" | ||
|
||
@microbuild.ignore | ||
@microbuild.task(clean) | ||
def images(): | ||
"""Prepare images. Should be ignored.""" | ||
|
||
raise Exception("This task should have been ignored.") | ||
|
||
@microbuild.task(clean,html,images) | ||
def android(): | ||
"""Package Android app.""" | ||
|
||
print "android" | ||
|
||
if __name__ == "__main__": | ||
microbuild.build(sys.modules[__name__],sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters