enable smp builds
[moonshot.git] / builder
diff --git a/builder b/builder
index 576ee2f..0eb12e4 100755 (executable)
--- a/builder
+++ b/builder
@@ -82,7 +82,7 @@ def build(package):
             except: pass
             run_cmd(root_command +' make dist-gzip', shell=True)
             run_cmd('cp *.tar.gz ' +dist_dir, shell=True)
-        run_cmd(schroot_command + ' make', shell=True)
+        run_cmd(schroot_command + ' make -j3', shell=True)
 
 def make_install(package):
     with current_directory(package):
@@ -153,8 +153,9 @@ if tar_file is not None: dist = True
 our_schroot = None
 if options.schroot is not None:
     our_schroot = Schroot(options.schroot)
-    schroot_command = "schroot -r -c " + our_schroot.name + ' --'
-    root_command = schroot_command + " -u root"
+    schroot_command_base = "schroot -r -c " + our_schroot.name
+    root_command = schroot_command_base + " -u root --"
+    schroot_command = schroot_command_base + ' --'
 
 all_packages = read_packages()
 if len(packages) == 0: packages = all_packages