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 ../../..
|
2021-08-01 19:30:57 +02:00
|
|
|
for n in taler_error_codes.c
|
|
|
|
do
|
|
|
|
if ! diff contrib/gana/gnu-taler-error-codes/${n} src/util/${n} > /dev/null
|
|
|
|
then
|
|
|
|
cp contrib/gana/gnu-taler-error-codes/$n src/util/$n
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for n in taler_error_codes.h
|
2021-08-01 13:56:48 +02:00
|
|
|
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
|