fix #6431
This commit is contained in:
parent
816ff63ab6
commit
d72816cfde
@ -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
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit b740d0021e0ed6c0a7db00eac0e39d33cb263e5d
|
||||
Subproject commit 82ff6a36db88799cf6f658bd8855cefa5306c06d
|
18
contrib/gana-update.sh
Executable file
18
contrib/gana-update.sh
Executable 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user