2020-07-24 12:43:33 +02:00
|
|
|
#!/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
|
|
|
|
cp contrib/gana/gnu-taler-error-codes/taler_error_codes.h src/include/taler_error_codes.h
|
2020-12-14 15:42:32 +01:00
|
|
|
fi
|
|
|
|
if ! diff contrib/gana/gnu-taler-error-codes/taler_error_codes.c src/util/taler_error_codes.c > /dev/null
|
|
|
|
then
|
2020-07-24 12:43:33 +02:00
|
|
|
cp contrib/gana/gnu-taler-error-codes/taler_error_codes.c src/util/taler_error_codes.c
|
|
|
|
fi
|