]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Overwrite ldk_ver.h to avoid back-to-back builds duplicating consts
authorMatt Corallo <git@bluematt.me>
Sun, 16 Jan 2022 03:02:37 +0000 (03:02 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 16 Jan 2022 03:02:37 +0000 (03:02 +0000)
This causes back-to-back builds to have an ldk_ver.h for which the
oldest content dominates.

genbindings.sh

index 238c720b66fa4e7ae407707a18e252c60ccb1a7e..533ee7c1722f13fe405f53790a45203bab22b471 100755 (executable)
@@ -113,7 +113,7 @@ static inline const char* check_get_ldk_bindings_version() {
 }
 #endif /* _LDK_HEADER_VER */
 EOF
-)" >> lightning-c-bindings/include/ldk_ver.h
+)" > lightning-c-bindings/include/ldk_ver.h
 
 rm -rf lightning-c-bindings/src