exchange/contrib/gana-update.sh

28 lines
725 B
Bash
Raw Normal View History

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 ../../..
for n in taler_error_codes.h taler_error_codes.c
do
if ! diff contrib/gana/gnu-taler-error-codes/${n} src/include/${n} > /dev/null
then
cp contrib/gana/gnu-taler-error-codes/$n src/include/$n
fi
done
cd contrib/gana/gnu-taler-db-events
make
cd ../../..
for n in taler_dbevents.h
do
if ! diff contrib/gana/gnu-taler-db-events/${n} src/include/${n} > /dev/null
then
cp contrib/gana/gnu-taler-db-events/$n src/include/$n
fi
done