vbatts / copr-build-bazel

copr build of bazel | https://copr.fedorainfracloud.org/coprs/vbatts/bazel/
15 stars 12 forks source link

Install the Bazel Bash wrapper script #8

Closed KelvinLu closed 5 years ago

KelvinLu commented 5 years ago

This addresses issue #6.

Bazel provides a Bash wrapper (scripts/packages/bazel.sh) as part of their source distribution.

This installs the script in the same place as the Bazel binary, renaming the latter to bazel-real as per the wrapper.

For reference, the Bazel Homebrew Formula does this for macOS.

  def install
    # ...

    cd "sources" do
      # ...

      bin.install "scripts/packages/bazel.sh" => "bazel"
      (libexec/"bin").install "output/bazel" => "bazel-real"
      # ...
vbatts commented 5 years ago

oh interesting. Sorry I've missed this. Let me take a look.

vbatts commented 5 years ago

in master with 36e6b89, and tagging for build as v0.27.0-6