Skip to content

Instantly share code, notes, and snippets.

@esben
Created November 13, 2014 19:54
Show Gist options
  • Save esben/bf52cbce3ff84cf1ddfb to your computer and use it in GitHub Desktop.
Save esben/bf52cbce3ff84cf1ddfb to your computer and use it in GitHub Desktop.
Inspiration for XD-build core task description and structure
fetch = Task()
fetch.mount('/task/fetch', '%s/%s'%(FETCH_BASEDIR, FETCH_SUBDIR))
unpack = Task()
unpack.after('fetch')
unpack.mount('/task/fetch', '%s/%s'%(FETCH_BASEDIR, FETCH_SUBDIR), ro=True)
unpack.capture('/task/src')
configure = Task()
configure.after('fetch')
def do_configure():
print('do_configure')
configure = do_configure
configure.capture('/task/build')
compile = Task()
compile.after(['configure'])
def do_compile():
print('do_compile')
compile = do_compile
compile.capture('/task/build')
install = Task()
install.after('compile')
install.capture('/task/install')
package = Task()
package.after('install')
package.export('/task/package', '%s/%s'%(PACKAGE_BASEDIR, PACKAGE_SUBDIR))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment