| package(default_visibility = ["//visibility:public"]) | |
| genrule( | |
| name = "all", | |
| testonly = 1, | |
| srcs = [ | |
| "//org.eclipse.jgit:jgit", | |
| "//org.eclipse.jgit.pgm:pgm", | |
| "//org.eclipse.jgit.ui:ui", | |
| "//org.eclipse.jgit.archive:jgit-archive", | |
| "//org.eclipse.jgit.http.apache:http-apache", | |
| "//org.eclipse.jgit.http.server:jgit-servlet", | |
| "//org.eclipse.jgit.http.server.ee8:jgit-servlet-ee8", | |
| "//org.eclipse.jgit.lfs:jgit-lfs", | |
| "//org.eclipse.jgit.lfs.server:jgit-lfs-server", | |
| "//org.eclipse.jgit.lfs.server.ee8:jgit-lfs-server-ee8", | |
| "//org.eclipse.jgit.junit:junit", | |
| "//org.eclipse.jgit.ssh.apache:ssh-apache", | |
| "//org.eclipse.jgit.ssh.apache.agent:ssh-apache-agent", | |
| ], | |
| outs = ["all.zip"], | |
| cmd = " && ".join([ | |
| "p=$$PWD", | |
| "t=$$(mktemp -d || mktemp -d -t bazel-tmp)", | |
| "cp $(SRCS) $$t", | |
| "cd $$t", | |
| "zip -qr $$p/$@ .", | |
| ]), | |
| ) |