From 9d88d6a8c38e1a35f5749d06214f92513414ed67 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 14 Nov 2012 16:50:21 +0000 Subject: Refactor dnbuild into devbot --- (limited to 'commands') diff --git a/commands/build b/commands/build new file mode 100755 index 0000000..99f3048 --- /dev/null +++ b/commands/build @@ -0,0 +1,8 @@ +#!/usr/bin/python -u + +import common + +from devbot import build + +common.setup() +build.build() diff --git a/commands/clean b/commands/clean new file mode 100755 index 0000000..fc29466 --- /dev/null +++ b/commands/clean @@ -0,0 +1,8 @@ +#!/usr/bin/python + +import common + +from devbot import build + +common.setup() +build.clean() diff --git a/commands/common.py b/commands/common.py index 2836291..6f676a6 100644 --- a/commands/common.py +++ b/commands/common.py @@ -9,4 +9,7 @@ from devbot import system from devbot import config def setup(): - config.set_path(os.path.join(base_path, "scripts", "deps")) + config.set_config_dir(os.path.join(base_path, "scripts")) + config.set_install_dir(os.path.join(base_path, "install")) + config.set_source_dir(os.path.join(base_path, "source")) + config.set_build_dir(os.path.join(base_path, "build")) diff --git a/commands/run b/commands/run new file mode 100755 index 0000000..b1f76aa --- /dev/null +++ b/commands/run @@ -0,0 +1,9 @@ +#!/usr/bin/python + +import common +import sys + +from devbot import run + +common.setup() +run.run(sys.argv[1:]) diff --git a/commands/shell b/commands/shell new file mode 100755 index 0000000..e588e06 --- /dev/null +++ b/commands/shell @@ -0,0 +1,8 @@ +#!/usr/bin/python + +import common + +from devbot import shell + +common.setup() +shell.start() -- cgit v0.9.1