aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/commandrunner.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-01-16 18:04:59 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-01-16 18:04:59 +0200
commitd6e176f45589485786fe87ba7ef15fe7fd8302d1 (patch)
treeba0f5ee99fc202c93869c37cdcb585e9ceafdc81 /mesonbuild/scripts/commandrunner.py
parent23b98cd6e66c6ae0f070e28e0f8b1566c0b5e585 (diff)
downloadmeson-d6e176f45589485786fe87ba7ef15fe7fd8302d1.zip
meson-d6e176f45589485786fe87ba7ef15fe7fd8302d1.tar.gz
meson-d6e176f45589485786fe87ba7ef15fe7fd8302d1.tar.bz2
Made gtkdoc and run targets work.
Diffstat (limited to 'mesonbuild/scripts/commandrunner.py')
-rw-r--r--mesonbuild/scripts/commandrunner.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mesonbuild/scripts/commandrunner.py b/mesonbuild/scripts/commandrunner.py
index f5a2fff..1c37f5c 100644
--- a/mesonbuild/scripts/commandrunner.py
+++ b/mesonbuild/scripts/commandrunner.py
@@ -43,14 +43,14 @@ def run_command(source_dir, build_dir, subdir, command, arguments):
sys.exit(1)
def run(args):
- if len(sys.argv) < 4:
+ if len(args) < 4:
print('commandrunner.py <source dir> <build dir> <subdir> <command> [arguments]')
- sys.exit(1)
- src_dir = sys.argv[1]
- build_dir = sys.argv[2]
- subdir = sys.argv[3]
- command = sys.argv[4]
- arguments = sys.argv[5:]
+ return 1
+ src_dir = args[0]
+ build_dir = args[1]
+ subdir = args[2]
+ command = args[3]
+ arguments = args[4:]
pc = run_command(src_dir, build_dir, subdir, command, arguments)
pc.wait()
return pc.returncode