X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=genbindings.sh;h=cd549d792f9efb6bf7c8e9ddc8bb86e579a7f926;hp=b06f9c40bed55d8b6e2144319f97a9f106633d1d;hb=a6f3a48f8f3ba39a001b8b55afa5355fd5146abe;hpb=786c2bf96486a96fe46405571f53296660fe1594 diff --git a/genbindings.sh b/genbindings.sh index b06f9c40..cd549d79 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -18,6 +18,10 @@ fi set -e +if [ "$LDK_GARBAGECOLLECTED_GIT_OVERRIDE" = "" ]; then + export LDK_GARBAGECOLLECTED_GIT_OVERRIDE=$(git describe --tag --dirty) +fi + cp "$1/lightning-c-bindings/include/lightning.h" ./ if [ "$(rustc --version --verbose | grep "host:")" = "host: x86_64-apple-darwin" ]; then # OSX sed is for some reason not compatible with GNU sed