File: bootstrap

package info (click to toggle)
clojure-cli 1.12.0.1488-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 360 kB
  • sloc: sh: 659; ruby: 40; makefile: 18
file content (28 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download
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
#!/bin/bash

set -ueo pipefail

misuse()
{
    echo 'Usage: bootstrap (release | clean)' 1>&2
    exit 2
}

cp=($(< debian/build-classpath))
cp="$(IFS=:; echo "${cp[*]}")"

test "$#" -eq 1 || misuse
case "$1" in
    release|clean) ;;
    *) misuse;;
esac

cmd="$1"

export DEB_CLJ_TOOLS_DEPS_FOLLOW_MVN_RELOCATIONS=true
exec java \
     -XX:-OmitStackTraceInFastThrow \
     -classpath "$cp" \
     clojure.main \
     -i script/build.clj \
     -e "(build/$cmd nil)"