fix #6431
This commit is contained in:
parent
816ff63ab6
commit
d72816cfde
@ -15,6 +15,11 @@ else
|
|||||||
endif
|
endif
|
||||||
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@
|
@DX_RULES@
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
@ -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
|
git pull origin master
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
# Generate taler-error-codes.h in gana and copy it to
|
./contrib/gana-update.sh
|
||||||
# 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user