diff options
author | kyessenov <unknown> | 2010-07-15 02:02:11 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-07-15 02:02:11 +0000 |
commit | 2f0dcccad173b2478d9d9c4590b2355677b631bb (patch) | |
tree | 9c82d8fb7b55f6545db37bb00c1c4574893487c8 | |
parent | 1c2d6e9356b72396681225b2907032990a26e2f3 (diff) |
Chalice: revert minor commit; add cygwin python make script
-rw-r--r-- | Chalice/make | 39 | ||||
-rw-r--r-- | Chalice/src/Chalice.scala | 2 |
2 files changed, 40 insertions, 1 deletions
diff --git a/Chalice/make b/Chalice/make new file mode 100644 index 00000000..643832ef --- /dev/null +++ b/Chalice/make @@ -0,0 +1,39 @@ +#! /bin/python
+
+import os
+import glob
+import sys
+import datetime
+
+bindir = "bin"
+if not os.path.exists(bindir):
+ os.makedirs(bindir)
+
+srcspecs = ["src/*.scala"]
+srcfiles = [file for spec in srcspecs for file in glob.glob(spec)]
+
+buildstamp = "makestamp"
+
+lastbuild = None
+if os.path.exists(buildstamp):
+ lastbuild = os.path.getmtime(buildstamp)
+
+changedfiles = [file for file in srcfiles if not lastbuild or lastbuild <= os.path.getmtime(file)]
+
+if not changedfiles:
+ print "Build is up-to-date."
+ sys.exit(0)
+
+def printtime():
+ print datetime.datetime.now().strftime("%H:%M:%S")
+
+printtime()
+cmd = "scalac -d bin -unchecked -deprecation " + " ".join(changedfiles) + " 2>&1"
+print cmd
+result = os.system(cmd)
+printtime()
+
+if result == 0:
+ open(buildstamp, "w").close()
+else:
+ print "Build failed."
diff --git a/Chalice/src/Chalice.scala b/Chalice/src/Chalice.scala index d202f42f..2f54b71f 100644 --- a/Chalice/src/Chalice.scala +++ b/Chalice/src/Chalice.scala @@ -11,7 +11,7 @@ import scala.util.parsing.input.Position object Chalice {
def main(args: Array[String]): unit = {
- var boogiePath = "C:\\Users\\t-kuayes\\Documents\\Boogie-2010-07-13\\Boogie.exe"
+ var boogiePath = "C:\\boogie\\Binaries\\Boogie.exe"
// parse command-line arguments
var inputName: String = null
var printProgram = false
|