cws/build.sc
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 10 Oct 2022 15:15:15 +0100
changeset 888 fc812b8f120f
parent 887 d9d52f3e7935
child 889 00c1c3408c93
permissions -rwxr-xr-x
texupdate

#!/usr/bin/env amm

val files = List("cw01.tex",
	         "cw02.tex",
	         "cw03.tex",
	         "cw04.tex",
	         "cw05.tex")




@main
def make() = {
  for (f <- files) {
    println(s"Processing $f ...")
    os.proc("xelatex", f).call(stdout = os.Inherit, stdin = os.Inherit)
    os.proc("xelatex", f).call(stdout = os.Inherit, stdin = os.Inherit)
  }
}


@main
def hg() = {
  println(s"$files")
  println(os.proc("hg", "commit", "-m texupdate", files.mkString(" ")).call())
}