aboutsummaryrefslogtreecommitdiff
path: root/contrib/gana-latest.sh
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-07-31 10:52:34 +0200
committerFlorian Dold <florian@dold.me>2023-07-31 10:52:34 +0200
commit3923530608d02130841f6daa2c2d07155655ac80 (patch)
tree1a17523de6ed73326dd7998b1a9764fb626a0a12 /contrib/gana-latest.sh
parentdc81d01304e3cf93c4ae86ab8c11fa778aff583f (diff)
downloadexchange-3923530608d02130841f6daa2c2d07155655ac80.tar.xz
make sure gana files are built from pinned submodule
Previously the bootstrap script would always pull and build from the latest gana.git master, which led to unreproducible builds, and broke building older tags of the exchange from git when gana did a breaking change.
Diffstat (limited to 'contrib/gana-latest.sh')
-rwxr-xr-xcontrib/gana-latest.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/gana-latest.sh b/contrib/gana-latest.sh
new file mode 100755
index 000000000..e92761acc
--- /dev/null
+++ b/contrib/gana-latest.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Helper script to update to latest GANA
+# Run from exchange/ main directory.
+set -eu
+
+cd contrib/gana
+git pull origin master
+cd ../..
+
+exec ./contrib/gana-generate.sh