diff --git a/BUILD.bazel b/BUILD.bazel index 9ec1be6ec65c..edf672e1f735 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -53,6 +53,7 @@ install( "//drake/examples:install", "//drake/lcmtypes:install", "//drake/manipulation/models:install_data", + "//setup:install", "//tools/install/libdrake:install", "//tools/workspace:install_external_packages", ]), diff --git a/doc/from_binary.rst b/doc/from_binary.rst index a6dd2083cc0e..390e794ac08b 100644 --- a/doc/from_binary.rst +++ b/doc/from_binary.rst @@ -15,7 +15,7 @@ There are `experimental binary packages `_. diff --git a/setup/BUILD.bazel b/setup/BUILD.bazel new file mode 100644 index 000000000000..e631c3ac404a --- /dev/null +++ b/setup/BUILD.bazel @@ -0,0 +1,29 @@ +# -*- python -*- + +load("@drake//tools/install:install.bzl", "install_files") +load("//tools/lint:lint.bzl", "add_lint_tests") + +package(default_visibility = ["//visibility:public"]) + +install_files( + name = "install", + dest = "share/drake/setup", + files = select({ + "//tools/cc_toolchain:apple": [ + "mac/install_prereqs_binary_distribution.sh", + ], + "//tools/cc_toolchain:linux": [ + "ubuntu/16.04/install_prereqs_binary_distribution.sh", + ], + "//conditions:default": [], + }), + strip_prefix = [ + "mac", + "ubuntu/16.04", + ], + rename = { + "share/drake/setup/install_prereqs_binary_distribution.sh": "install_prereqs", # noqa + }, +) + +add_lint_tests() diff --git a/setup/ubuntu/16.04/install_prereqs_binary_distribution.sh b/setup/ubuntu/16.04/install_prereqs_binary_distribution.sh old mode 100644 new mode 100755