diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2016-07-04 13:38:20 +0000 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2016-07-04 14:02:58 +0000 |
commit | 3dff9a34d3931b23be4376e8f455cacea40db7ff (patch) | |
tree | 7823894faa75c34359f16a45d2e6dbdda03744cc /scripts/packages | |
parent | ca407f0e80a67ad2c1aa3469fad3c031f3c0c979 (diff) |
Adds a GPL warning to the binary installer
Also remove some bashism to fix #1456.
--
Change-Id: I374f1290a3eb9e9e5bcc48e19a1c0ab1c5bdaa99
Reviewed-on: https://bazel-review.googlesource.com/#/c/3952/
MOS_MIGRATED_REVID=126572632
Diffstat (limited to 'scripts/packages')
-rwxr-xr-x | scripts/packages/template_bin.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/packages/template_bin.sh b/scripts/packages/template_bin.sh index 3ae4ed2166..5323946cdd 100755 --- a/scripts/packages/template_bin.sh +++ b/scripts/packages/template_bin.sh @@ -26,11 +26,16 @@ progname="$0" echo "Bazel installer" echo "---------------" echo +echo "Bazel is bundled with software licensed under the GPLv2 with Classpath exception." +echo "You can find the sources next to the installer on our release page:" +echo " https://github.com/bazelbuild/bazel/releases" +echo + cat <<'EOF' %release_info% EOF -function usage() { +usage() { echo "Usage: $progname [options]" >&2 echo "Options are:" >&2 echo " --prefix=/some/path set the prefix path (default=/usr/local)." >&2 @@ -73,7 +78,7 @@ done bin="${bin//%prefix%/${prefix}}" base="${base//%prefix%/${prefix}}" -function test_write() { +test_write() { local file="$1" while [ "$file" != "/" ] && [ -n "${file}" ] && [ ! -e "$file" ]; do file="$(dirname "${file}")" |