Permalink
Browse files

build_vw_asp: fix git commands and number of processors

  • Loading branch information...
1 parent df8a45b commit 332ed67548b78e34b28b33f6e48db3b7dbf08132 @dshean committed Mar 20, 2013
Showing with 10 additions and 3 deletions.
  1. +10 −3 build_vw_asp.csh
View
@@ -9,6 +9,7 @@
set brew_root = /usr/local
set src_root = /Users/dshean
+set np = 8
echo
echo "Building VW"
@@ -29,6 +30,8 @@ cd $vwsrcdir
git fetch --all
git rebase upstream/master
+#Check status
+
set commit_id = `git log upstream/master -n 1 --pretty=format:%H | cut -c 1-7`
set vwdstdir = "${vwdstdir_root}/vw_${commit_id}"
@@ -52,7 +55,7 @@ if ($status) goto failed
echo
make clean
echo
-make -j 8
+make -j $np
if ($status) goto failed
@@ -84,7 +87,11 @@ cd $aspsrcdir
#git reset --hard HEAD
#git clean -f
-git pull
+
+git fetch --all
+git rebase upstream/master
+
+#Check status
set commit_id = `git log upstream/master -n 1 --pretty=format:%H | cut -c 1-7`
set aspdstdir = "${aspdstdir_root}/asp_${commit_id}"
@@ -104,7 +111,7 @@ if ($status) goto failed
echo
make clean
echo
-make -j 2
+make -j $np
if ($status) goto failed

0 comments on commit 332ed67

Please sign in to comment.