File: epfl-build

package info (click to toggle)
scala 2.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 67,208 kB
  • sloc: java: 27,488; xml: 4,412; python: 2,297; sh: 734; makefile: 16; ansic: 6
file content (28 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env bash
#
# builds nightlies

[[ $# -gt 0 ]] || {
  cat <<EOM
Usage: $0 <version> [opt opt ...]

  Everything after the version is supplied to scalac and partest.
  Example:   $0 -Xcheckinit -Ycheck:all

Environment variables:
  extra_ant_targets   Additional ant targets to run after nightly

EOM
  exit 0
}

# version isn't actually used at present.
scalaVersion="$1" && shift
scalaArgs="-Dscalac.args=\"$@\" -Dpartest.scalac_opts=\"$@\""

ant all.clean && ./pull-binary-libs.sh

ant $scalaArgs build-opt &&
ant $scalaArgs nightly &&
for target in $extra_ant_targets; do ant $target ; done
# [[ -n "$BUILD_DOCSCOMP" ]] && ant docscomp