summaryrefslogtreecommitdiff
path: root/Chalice/make.py
diff options
context:
space:
mode:
authorGravatar kyessenov <unknown>2010-07-15 00:51:33 +0000
committerGravatar kyessenov <unknown>2010-07-15 00:51:33 +0000
commit1ab0b263cf04868238facb8c52c42e89bbdc5f62 (patch)
treeb86765231deaa95c11ec13eb6b1abdc1bc0c0d92 /Chalice/make.py
parentb76e2ef91b434ce9ca291a608272ebccbbea2aae (diff)
Chalice: fix a bug for boogie print-out of a sequence class
Diffstat (limited to 'Chalice/make.py')
-rw-r--r--Chalice/make.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Chalice/make.py b/Chalice/make.py
index e3ba1ab9..643832ef 100644
--- a/Chalice/make.py
+++ b/Chalice/make.py
@@ -1,11 +1,15 @@
+#! /bin/python
+
import os
import glob
import sys
import datetime
bindir = "bin"
+if not os.path.exists(bindir):
+ os.makedirs(bindir)
-srcspecs = ["src\\*.scala"]
+srcspecs = ["src/*.scala"]
srcfiles = [file for spec in srcspecs for file in glob.glob(spec)]
buildstamp = "makestamp"
@@ -24,7 +28,7 @@ def printtime():
print datetime.datetime.now().strftime("%H:%M:%S")
printtime()
-cmd = "scalac -d bin -unchecked -deprecation " + " ".join(changedfiles) + " & if errorlevel 1 exit 1"
+cmd = "scalac -d bin -unchecked -deprecation " + " ".join(changedfiles) + " 2>&1"
print cmd
result = os.system(cmd)
printtime()