From b53033a0ae08ff53bfa352fd8b58fa743ff479e0 Mon Sep 17 00:00:00 2001
From: Philippe Suter <philippe.suter@gmail.com>
Date: Thu, 20 Jan 2011 19:16:48 +0000
Subject: [PATCH] =?UTF-8?q?=E2=99=AA=E2=99=AC=E2=99=A9=20The=20Greatest=20?=
 =?UTF-8?q?Invention=20Since=20the=20Scala=20Compiler:=20a=20Bash=20Script?=
 =?UTF-8?q?=20!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 funcheck | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100755 funcheck

diff --git a/funcheck b/funcheck
new file mode 100755
index 000000000..3af3d261a
--- /dev/null
+++ b/funcheck
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+runner="./scalac-funcheck"
+newargs=""
+
+for arg in $@
+do
+    if [ -e ${arg} ]
+    then
+        newargs="${newargs} ${arg}"
+    else
+        newargs="${newargs} -P:funcheck:${arg}"
+    fi
+done
+
+if [ -e ${runner} ]
+then
+    ${runner} ${newargs}
+    exit 0
+else
+    echo "${runner} not found. Have you run 'sbt all' ?"
+    exit 1
+fi
+
-- 
GitLab