Index: jhbuild/config.py
===================================================================
RCS file: /cvs/gnome/jhbuild/jhbuild/config.py,v
retrieving revision 1.25
diff -U5 -r1.25 config.py
--- jhbuild/config.py	19 Jun 2006 14:07:25 -0000	1.25
+++ jhbuild/config.py	18 Sep 2006 09:17:22 -0000
@@ -32,11 +32,11 @@
                 'repos', 'branches',
                 'builddir_pattern', 'module_autogenargs', 'module_makeargs',
                 'interact', 'buildscript', 'nonetwork',
                 'alwaysautogen', 'nobuild', 'makeclean', 'makecheck',
                 'use_lib64', 'tinderbox_outputdir', 'sticky_date',
-                'tarballdir', 'pretty_print' ]
+                'tarballdir', 'pretty_print', 'unittestfails' ]
 
 env_prepends = {}
 def prependpath(envvar, path):
     env_prepends.setdefault(envvar, []).append(path)
 
Index: jhbuild/main.py
===================================================================
RCS file: /cvs/gnome/jhbuild/jhbuild/main.py,v
retrieving revision 1.19
diff -U5 -r1.19 main.py
--- jhbuild/main.py	16 May 2006 02:19:54 -0000	1.19
+++ jhbuild/main.py	18 Sep 2006 09:17:22 -0000
@@ -35,10 +35,11 @@
         ('list', 'list what modules would be built'),
         ('info', 'prints information about modules'),
         ('tinderbox', 'build non-interactively with logging'),
         ('gui', 'build targets from a gui app'),
         ('run', 'run a command in the build environment'),
+        ('pathrun', 'run a command in the module build directory'),
         ('shell', 'start a shell in the build environment'),
         ('sanitycheck', 'check that required support tools exists'),
         ('bootstrap', 'build required support tools'),
         ('dot', 'output a dependency graph for processing with graphviz'),
         ]
Index: jhbuild/commands/base.py
===================================================================
RCS file: /cvs/gnome/jhbuild/jhbuild/commands/base.py,v
retrieving revision 1.12
diff -U5 -r1.12 base.py
--- jhbuild/commands/base.py	24 May 2006 05:37:27 -0000	1.12
+++ jhbuild/commands/base.py	18 Sep 2006 09:17:22 -0000
@@ -217,10 +217,31 @@
     def execute(self, config, args):
         os.execlp(args[0], *args)
 
 register_command(cmd_run)
 
+class cmd_path_run(Command):
+    """Run a command under the module path"""
+
+    name = 'pathrun'
+    usage_args = 'module program [ arguments ...]'
+
+    def execute(self, config, args):
+
+        module_set = jhbuild.moduleset.load(config)
+        try:
+            module_list = [module_set.modules[args[0]]]
+        except KeyError, e:
+            raise FatalError("A module called '%s' could not be found."
+                             % str(e))
+
+        build = jhbuild.frontends.get_buildscript(config, module_list)
+        builddir = module_list[0].get_builddir(build)
+        command_args = args[1:]
+        build.execute(command_args, cwd=builddir)
+
+register_command(cmd_path_run)
 
 class cmd_shell(Command):
     """Run a command under the jhbuild environment"""
 
     name = 'shell'
