Browse code

Add a `make` target to vendor the web console

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

Steve Kuznetsov authored on 2016/10/08 01:04:24
Showing 1 changed files
... ...
@@ -249,3 +249,17 @@ build-rpms:
249 249
 build-rpms-redistributable:
250 250
 	tito build --test --rpm --no-cleanup --rpmbuild-options='--define "make_redistributable 1"'
251 251
 .PHONY: build-rpms-redistributable
252
+
253
+# Vendor the Origin Web Console
254
+#
255
+# Args:
256
+#   GIT_REF:           specifies which branch / tag of the web console to vendor. If set, then any untracked/uncommitted changes
257
+#                      will cause the script to exit with an error. If not set then the current working state of the web console
258
+#                      directory will be used.
259
+#   CONSOLE_REPO_PATH: specifies a directory path to look for the web console repo.  If not set it is assumed to be
260
+#                      a sibling to this repository.
261
+# Example:
262
+#   make vendor-console
263
+vendor-console:
264
+	GIT_REF=$(GIT_REF) CONSOLE_REPO_PATH=$(CONSOLE_REPO_PATH) hack/vendor-console.sh
265
+.PHONY: vendor-console
252 266
\ No newline at end of file