We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e20fbd5 + d16188e commit 2cac23bCopy full SHA for 2cac23b
scripts/buildReleases
@@ -1,13 +1,19 @@
1
#!/usr/bin/env bash
2
3
+# buildReleases uses cross-compilation features of the Go compiler to build
4
+# executables for the target platforms we require in the java-buildpack. This
5
+# script assumes that the Go compiler is installed so that all the platforms
6
+# can be targeted. If not this script will exit with a non-zero status.
7
+
8
set -e -u
9
10
function build() {
11
local type=$1
12
local target="java-buildpack-memory-calculator-${type}"
13
- GOOS=${type} go build -a && mv java-buildpack-memory-calculator ${target}
- echo "Built ${target}"
14
+ GOOS=${type} go build -a \
15
+ && mv java-buildpack-memory-calculator ${target} \
16
+ && echo "Built ${target}"
17
}
18
19
build linux
0 commit comments