-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cmd
executable file
·35 lines (34 loc) · 1.19 KB
/
setup.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
::/*#! 2> /dev/null #
@ 2>/dev/null # 2>nul & echo off & goto BOF #
if [ -z ${SIREUM_HOME} ]; then #
echo "Please set SIREUM_HOME env var" #
exit -1 #
fi #
exec ${SIREUM_HOME}/bin/sireum slang run "$0" "$@" #
:BOF
setlocal
if not defined SIREUM_HOME (
echo Please set SIREUM_HOME env var
exit /B -1
)
%SIREUM_HOME%\bin\sireum.bat slang run "%0" %*
exit /B %errorlevel%
::!#*/
// #Sireum
import org.sireum._
val sireumJar = Os.path(Os.env("SIREUM_HOME").get) / "bin" / "sireum.jar"
val cwd = Os.slashDir
val lib = cwd / "lib"
val targetLib = cwd / "target" / "plugin" / "sireum-intellij-plugin" / "lib"
val libSireum = lib / sireumJar.name
val targetSireum = targetLib / sireumJar.name
val antlr = cwd / "src" / "main" / "java" / "org" / "antlr" / "intellij"
lib.mkdirAll()
targetLib.mkdirAll()
libSireum.removeAll()
targetSireum.removeAll()
libSireum.mklink(sireumJar)
targetSireum.mklink(sireumJar)
antlr.removeAll()
antlr.up.mkdirAll()
(cwd / "antlr4-intellij-adaptor" / "src" / "main" / "java" / "org" / "antlr" / "intellij").copyTo(antlr)