mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Build: Fix shell script run under Windows OS; format fixes (sbt fix)
This commit is contained in:
@ -999,8 +999,7 @@ def compileElm(
|
|||||||
val cmd = (Seq("elm", "make")
|
val cmd = (Seq("elm", "make")
|
||||||
++ mode.flags
|
++ mode.flags
|
||||||
++ Seq("--output", target.toString)
|
++ Seq("--output", target.toString)
|
||||||
++ Seq(wd / "src" / "main" / "elm" / "Main.elm").map(_.toString)
|
++ Seq(wd / "src" / "main" / "elm" / "Main.elm").map(_.toString))
|
||||||
)
|
|
||||||
Cmd.run(cmd, wd, logger)
|
Cmd.run(cmd, wd, logger)
|
||||||
val targetGZ = file(target.toString + ".gz")
|
val targetGZ = file(target.toString + ".gz")
|
||||||
IO.gzip(target, targetGZ)
|
IO.gzip(target, targetGZ)
|
||||||
|
@ -25,7 +25,8 @@ object Cmd {
|
|||||||
def exec(cmd: Seq[String], wd: Option[File]): Result = {
|
def exec(cmd: Seq[String], wd: Option[File]): Result = {
|
||||||
val command =
|
val command =
|
||||||
sys.props.get("os.name") match {
|
sys.props.get("os.name") match {
|
||||||
case Some(name) if name.toLowerCase.startsWith("windows") => Seq ("cmd", "/C") ++ cmd
|
case Some(name) if name.toLowerCase.startsWith("windows") =>
|
||||||
|
Seq("cmd", "/C") ++ cmd
|
||||||
case _ => cmd
|
case _ => cmd
|
||||||
}
|
}
|
||||||
val capt = new Capture
|
val capt = new Capture
|
||||||
|
Reference in New Issue
Block a user