diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-06-23 04:17:49 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-15 12:28:52 +0200 |
commit | a60b8def141f7644d991b8823addd26242954a04 (patch) | |
tree | 62967faf9339c654f1fb46cbcfe80c882915565e /src | |
parent | 2fb1284f1c5ca2f7f497196dfd9e24456f824298 (diff) | |
download | nbb-a60b8def141f7644d991b8823addd26242954a04.tar.gz nbb-a60b8def141f7644d991b8823addd26242954a04.tar.xz nbb-a60b8def141f7644d991b8823addd26242954a04.zip |
Test automake build commands
Diffstat (limited to 'src')
-rw-r--r-- | src/nbblib/bs.py | 7 | ||||
-rw-r--r-- | src/nbblib/main.py | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/nbblib/bs.py b/src/nbblib/bs.py index c7a33be..e78cd19 100644 --- a/src/nbblib/bs.py +++ b/src/nbblib/bs.py @@ -97,13 +97,14 @@ class AutomakeSourceTree(BSSourceTree): def configure(self): """'configure --prefix'""" + if not os.path.exists(os.path.join(self.config.srcdir, 'configure')): + self.init() builddir = self.config.builddir if not os.path.exists(builddir): os.makedirs(builddir) - if not os.path.exists(os.path.join(builddir, 'configure')): - self.init os.chdir(builddir) prog_run(["%s/configure" % self.config.srcdir, - "--prefix=%s" % self.config.installdir + "--prefix=%s" % self.config.installdir, + "--enable-maintainer-mode", ], self.context) def build(self): diff --git a/src/nbblib/main.py b/src/nbblib/main.py index 19582ed..b4664f2 100644 --- a/src/nbblib/main.py +++ b/src/nbblib/main.py @@ -28,7 +28,10 @@ TODO: (Large list) gained with git-amb, especially the command interdependencies. * implement *-sh and *-run commands * General removal of redundancy in Python code. + * Make sure the if cmp ... mv .. rm in make rules are correct and useful. * More declarative syntax elements in the Python code. + * Write test cases for init, configure, build, install. + * Write test cases for all nbb commands. * Use declarations for command line parsing, and help text generation. * Add global --nick or similar option to determine the branch name to use for composing the pathes. |