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
|
|
|
|
|
2022-05-11 10:27:50 +02:00
|
|
|
domake ()
|
|
|
|
{
|
|
|
|
# $1 -- dir under contrib/gana/
|
|
|
|
dir="contrib/gana/$1"
|
|
|
|
|
|
|
|
make -C $dir
|
|
|
|
}
|
|
|
|
|
|
|
|
ensure ()
|
|
|
|
{
|
|
|
|
# $1 -- filename
|
|
|
|
# $2 -- src dir under contrib/gana/
|
|
|
|
# $3 -- dst dir under ./
|
|
|
|
fn="$1"
|
|
|
|
src="contrib/gana/$2"
|
|
|
|
dst="./$3"
|
|
|
|
|
|
|
|
if ! diff $src/$fn $dst/$fn > /dev/null
|
2021-08-01 13:56:48 +02:00
|
|
|
then
|
2022-05-11 10:27:50 +02:00
|
|
|
cp $src/$fn $dst/$fn
|
2021-08-01 13:56:48 +02:00
|
|
|
fi
|
2022-05-11 10:27:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
domake gnu-taler-error-codes
|
|
|
|
ensure taler_error_codes.c gnu-taler-error-codes src/util
|
|
|
|
ensure taler_error_codes.h gnu-taler-error-codes src/include
|
|
|
|
|
|
|
|
domake gnu-taler-db-events
|
|
|
|
ensure taler_dbevents.h gnu-taler-db-events src/include
|