This commit is contained in:
Christian Grothoff 2020-07-24 12:43:33 +02:00
parent 816ff63ab6
commit d72816cfde
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 26 additions and 15 deletions

View File

@ -15,6 +15,11 @@ 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

@ -1 +1 @@
Subproject commit b740d0021e0ed6c0a7db00eac0e39d33cb263e5d
Subproject commit 82ff6a36db88799cf6f658bd8855cefa5306c06d

18
contrib/gana-update.sh Executable file
View File

@ -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

View File

@ -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