exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d72816cfde668130a6f3c25d8be35232a4e92859
parent 816ff63ab6c799288c33fc5baed70690130bb2b2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 24 Jul 2020 12:43:33 +0200

fix #6431

Diffstat:
MMakefile.am | 7++++++-
Acontrib/gana-update.sh | 18++++++++++++++++++
Mcontrib/gana.sh | 14+-------------
3 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/Makefile.am b/Makefile.am @@ -15,8 +15,13 @@ else endif endif +BUILT_SOURCES = src/include/taler_error_codes.h + +src/include/taler_error_codes.h: contrib/gana/gnu-taler-error-codes/registry.rec + contrib/gana-update.sh + @DX_RULES@ ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = \ - AUTHORS + AUTHORS diff --git a/contrib/gana-update.sh 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 diff --git a/contrib/gana.sh b/contrib/gana.sh @@ -9,16 +9,4 @@ cd contrib/gana git pull origin master cd ../.. -# 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 +./contrib/gana-update.sh