from mklib import include, Task include("a/Makefile.py", ns="a") include("docs/Makefile.py", ns="docs") include("support/make_support.py") class all(Task): default = True class clean(Task): pass class foo(Task): pass
import os from os.path import join, dirname, normpath, abspath, isabs, exists, \ splitext, basename import re import sys from pprint import pprint from mklib import Task, Configuration, Alias, include from mklib import sh from mklib.common import MkError sys.path.insert(0, join(_mk_makefile_.dir, "support")) include("support/checktasks.py", ns="check") class cfg(Configuration): pass class clean(Task): """Remove the build/obj dir.""" def make(self): if exists(self.cfg.obj_dir): sh.rm(self.cfg.obj_dir, self.log) class distclean(Task):
import os from os.path import join, exists from mklib import include, Task include("subdir/Makefile.py") class clean(Task): "clean up for test" def make(self): to_del = ["answer.txt", join("subdir", "answer.txt")] for path in to_del: if exists(path): os.remove(path)
import os from os.path import join, exists from mklib import include, Task include("subdir/Makefile.py") class clean(Task): "clean up for test" def make(self): to_del = ["answer.tmp", join("subdir", "answer.tmp")] for path in to_del: if exists(path): os.remove(path)
import sys from pprint import pprint from mklib import Task, Configuration, Alias, include from mklib import sh from mklib.common import MkError sys.path.insert(0, join(_mk_makefile_.dir, "support")) from buildsupport import paths_from_path_patterns, \ app_filter_html_path_inplace, \ app_filter_xml_path_inplace, _KomodoDocTask, \ ManifestParser, independentize_html_path import preprocess import api2html include("support/checktasks.py", ns="check") class cfg(Configuration): pass class mozhelp(_KomodoDocTask): """Make a mozhelp tree (for adding chrome://komododoc/ to a Komodo build). TODO: Use TaskGroup for this when ready. TODO: mk: The following should be more easily representable as simple CopyTask and PreprocessTask subclasses. One issue is then how to depend on these easily without having to list them. """
import subprocess from mklib import Task, Configuration, Alias, include from mklib import sh from mklib import utils from mklib.common import MkError sys.path.insert(0, join(dirname(__file__), "util")) import buildsupport sys.path.append( join(dirname(__file__), "contrib", "zope", "cachedescriptors", "src")) sys.path.insert(0, join(dirname(__file__), "src", "python-sitelib")) import textinfo include("util/checktasks.py", ns="check") class cfg(Configuration): prefix = "bk" class langpack(Task): """Make a lang-pack XPI for translation on babelzilla.org. See this thread for background: http://community.activestate.com/forum-topic/localizing-komodo-using-babelzilla-dream-team """ LANGPACK_VERSION = "0.1" def _svnversion_from_dir(self, dir):
from mklib import include, Task include('b/Makefile.py', ns='b') class ack(Task): default = True class clean(Task): "clean up" pass
import subprocess from mklib import Task, Configuration, Alias, include from mklib import sh from mklib import utils from mklib.common import MkError sys.path.insert(0, join(dirname(__file__), "util")) import buildsupport sys.path.insert(0, join(dirname(__file__), "src", "python-sitelib")) import textinfo include("util/checktasks.py", ns="check") class cfg(Configuration): prefix = "bk" class langpack(Task): """Make a lang-pack XPI for translation on babelzilla.org. See this thread for background: http://community.activestate.com/forum-topic/localizing-komodo-using-babelzilla-dream-team """ LANGPACK_VERSION = "0.1" def _svnversion_from_dir(self, dir):
from mklib import include, Task include('a/Makefile.py', ns='a') include('docs/Makefile.py', ns='docs') include('support/make_support.py') class all(Task): default = True class clean(Task): pass class foo(Task): pass