mirror of
https://github.com/google/nomulus
synced 2026-07-29 11:32:48 +00:00
Import code from internal repository to git
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
licenses(["notice"]) # BSD
|
||||
|
||||
genrule(
|
||||
name = "phantomjs_bin",
|
||||
srcs = ["@phantomjs//file"],
|
||||
outs = ["phantomjs"],
|
||||
cmd = " && ".join([
|
||||
"IN=$$(pwd)/$(SRCS)",
|
||||
"OUT=$$(pwd)/$@",
|
||||
"TMP=$$(mktemp -d $${TMPDIR:-/tmp}/phantomjs.XXXXXXXX)",
|
||||
"cd $$TMP",
|
||||
"tar -xjf $$IN",
|
||||
"cd phantomjs-*",
|
||||
"mv bin/phantomjs $$OUT",
|
||||
"rm -rf $$TMP",
|
||||
]),
|
||||
)
|
||||
Reference in New Issue
Block a user