diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-24 12:43:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-24 12:43:33 +0200 |
commit | d72816cfde668130a6f3c25d8be35232a4e92859 (patch) | |
tree | 64f8c944022f4ba6ebd7eddb67c02c4f6076fcd4 /contrib/gana-update.sh | |
parent | 816ff63ab6c799288c33fc5baed70690130bb2b2 (diff) | |
download | exchange-d72816cfde668130a6f3c25d8be35232a4e92859.tar.xz |
fix #6431
Diffstat (limited to 'contrib/gana-update.sh')
-rwxr-xr-x | contrib/gana-update.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/gana-update.sh b/contrib/gana-update.sh new file mode 100755 index 000000000..a5da6f1b1 --- /dev/null +++ b/contrib/gana-update.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# Helper script to recompute error codes based on submodule +# Run from exchange/ main directory. +set -eu + +# Generate taler-error-codes.h in gana and copy it to +# src/include/taler_error_codes.h +cd contrib/gana/gnu-taler-error-codes +make +cd ../../.. +if ! diff contrib/gana/gnu-taler-error-codes/taler_error_codes.h src/include/taler_error_codes.h > /dev/null +then + echo "Deploying latest new GANA database..." + cp contrib/gana/gnu-taler-error-codes/taler_error_codes.h src/include/taler_error_codes.h + cp contrib/gana/gnu-taler-error-codes/taler_error_codes.c src/util/taler_error_codes.c +else + echo "GANA database already up-to-date" +fi |