Skip to content

Commit 8c96c0e

Browse files
committed
Use a more portable shebang
based on epfl-lara/leon#313
1 parent 321e140 commit 8c96c0e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

build.sbt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ script := {
7676

7777
val paths = res.getAbsolutePath +: out.getAbsolutePath +: cps.map(_.data.absolutePath)
7878
val cp = paths.mkString(System.getProperty("path.separator"))
79-
IO.write(file, s"""|#!/bin/bash --posix
80-
|
81-
|SCALACLASSPATH=$cp
82-
|
83-
|java -Xmx2G -Xms512M -Xss64M -classpath "$${SCALACLASSPATH}" -Dscala.usejavacp=true inox.Main $$@ 2>&1
84-
|""".stripMargin)
79+
IO.write(file, s"""|#!/usr/bin/env bash
80+
|set -o posix
81+
|
82+
|SCALACLASSPATH=$cp
83+
|
84+
|java -Xmx2G -Xms512M -Xss64M -classpath "$${SCALACLASSPATH}" -Dscala.usejavacp=true inox.Main $$@ 2>&1
85+
|""".stripMargin)
8586
file.setExecutable(true)
8687
} catch {
8788
case e: Throwable =>

0 commit comments

Comments
 (0)