[GTK] Allow to run any jhbuild command with jhbuild-wrapper script
[WebKit-https.git] / Tools / jhbuild / jhbuild-wrapper
index d48db85b85a64c85564ffb734a6bddb3c6dca581..5b423fe3bd8645c9935bcd1b2ace438d8469b2a2 100755 (executable)
@@ -91,7 +91,7 @@ def install_jhbuild():
     if 'MAKE' in env_without_make:
         del env_without_make['MAKE']
 
-    process = subprocess.Popen(['./autogen.sh', '--prefix=%s' % installation_prefix],
+    process = subprocess.Popen(['bash', './autogen.sh', '--prefix=%s' % installation_prefix],
                                cwd=jhbuild_source_path, env=env_without_make)
     process.wait()
     if process.returncode != 0:
@@ -135,6 +135,6 @@ except ValueError as e:
     sys.exit(e)
 ensure_jhbuild()
 
-process = subprocess.Popen([jhbuild_path, '--no-interact', '-f', top_level_path('Tools', platform, 'jhbuildrc'), 'run'] + sys.argv[2:])
+process = subprocess.Popen([jhbuild_path, '--no-interact', '-f', top_level_path('Tools', platform, 'jhbuildrc')] + sys.argv[2:])
 process.wait()
 sys.exit(process.returncode)