From a60b8def141f7644d991b8823addd26242954a04 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 23 Jun 2008 04:17:49 +0200 Subject: Test automake build commands --- src/nbblib/bs.py | 7 ++++--- src/nbblib/main.py | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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. -- cgit