summaryrefslogtreecommitdiffstats
path: root/BUCK
diff options
context:
space:
mode:
authorShawn Pearce <sop@google.com>2015-12-31 11:18:02 -0800
committerShawn Pearce <sop@google.com>2015-12-31 17:18:50 -0800
commit34de70a5d42fc89275c9108351cf2e8154ff3322 (patch)
treea596a9eba25b883b2b19014c1cfb9210eae928ae /BUCK
parent13502fef8f4814c6c5bdfa63674c94f9d32b5531 (diff)
downloadjgit-34de70a5d42fc89275c9108351cf2e8154ff3322.tar.gz
jgit-34de70a5d42fc89275c9108351cf2e8154ff3322.zip
buck: build standalone jgit binary
Construct the java_application JAR wrapped with the shell script header. This is enough to clone a repository over HTTPs: $ buck build :jgit_bin $ buck-out/gen/jgit_bin/jgit_bin clone https://... Change-Id: I4aceb4e77b2ec9be76a32ec93d94f2dafe9acce6
Diffstat (limited to 'BUCK')
-rw-r--r--BUCK6
1 files changed, 6 insertions, 0 deletions
diff --git a/BUCK b/BUCK
index 7704281ecf..fca0e8a7f4 100644
--- a/BUCK
+++ b/BUCK
@@ -36,3 +36,9 @@ java_library(
],
visibility = ['PUBLIC'],
)
+
+genrule(
+ name = 'jgit_bin',
+ cmd = 'ln -s $(location //org.eclipse.jgit.pgm:jgit) $OUT',
+ out = 'jgit_bin',
+)