xref: /JGit/BUILD (revision 4560bdf7e2e3c16a7c7bb3f2fcf067bb1eee26fb)
1package(default_visibility = ["//visibility:public"])
2
3genrule(
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.jsch:ssh-jsch",
18    ],
19    outs = ["all.zip"],
20    cmd = " && ".join([
21        "p=$$PWD",
22        "t=$$(mktemp -d || mktemp -d -t bazel-tmp)",
23        "cp $(SRCS) $$t",
24        "cd $$t",
25        "zip -qr $$p/$@ .",
26    ]),
27)
28