| 1 |
package(default_visibility = ["//visibility:public"]) |
| 2 |
|
| 3 |
genrule( |
| 4 |
name = "all", |
| 5 |
testonly = 1, |
| 6 |
srcs = [ |
| 7 |
"//org.eclipse.jgit:jgit", |
| 8 |
"//org.eclipse.jgit.pgm:pgm", |
| 9 |
"//org.eclipse.jgit.ui:ui", |
| 10 |
"//org.eclipse.jgit.archive:jgit-archive", |
| 11 |
"//org.eclipse.jgit.http.apache:http-apache", |
| 12 |
"//org.eclipse.jgit.http.server:jgit-servlet", |
| 13 |
"//org.eclipse.jgit.lfs:jgit-lfs", |
| 14 |
"//org.eclipse.jgit.lfs.server:jgit-lfs-server", |
| 15 |
"//org.eclipse.jgit.junit:junit", |
| 16 |
"//org.eclipse.jgit.ssh.apache:ssh-apache", |
| 17 |
"//org.eclipse.jgit.ssh.apache.agent:ssh-apache-agent", |
| 18 |
"//org.eclipse.jgit.ssh.jsch:ssh-jsch", |
| 19 |
], |
| 20 |
outs = ["all.zip"], |
| 21 |
cmd = " && ".join([ |
| 22 |
"p=$$PWD", |
| 23 |
"t=$$(mktemp -d || mktemp -d -t bazel-tmp)", |
| 24 |
"cp $(SRCS) $$t", |
| 25 |
"cd $$t", |
| 26 |
"zip -qr $$p/$@ .", |
| 27 |
]), |
| 28 |
) |