aboutsummaryrefslogtreecommitdiff
path: root/examples/manifest/license_display.sh
diff options
context:
space:
mode:
authorBill Neubauer <wcn@google.com>2022-10-24 19:52:53 -0400
committerTony Aiuto <aiuto@google.com>2022-11-01 00:32:59 -0400
commitd8c455ebb46b0f489a4a83367e4833fda5a131db (patch)
tree15432eb15d61d926fadba52d89209698ea4bd324 /examples/manifest/license_display.sh
parent84c8fe9fabbd149dff42f854c07fabbe286f93a8 (diff)
downloadbazelbuild-rules_license-d8c455ebb46b0f489a4a83367e4833fda5a131db.tar.gz
Mega merge from Google
The core of the PR is an expert from Google, but it applies several changes to account for Bazel differences. - deal with bazel 5.x 6.x @// handling - restore package_url and package_version. This is temporary they will move to other providers. PiperOrigin-RevId: 483521567
Diffstat (limited to 'examples/manifest/license_display.sh')
-rw-r--r--examples/manifest/license_display.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/manifest/license_display.sh b/examples/manifest/license_display.sh
new file mode 100644
index 0000000..f96b3ba
--- /dev/null
+++ b/examples/manifest/license_display.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+function display_licenses {
+ echo -n "Licenses: "
+ cat "$0.runfiles/rules_license/examples/manifest/licenses_manifest.txt"
+ echo
+}