blob: db122b9a3a0b98d7653375e688131f665d8d6d24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
# Helper script to recompute error codes based on submodule
# Run from exchange/ main directory.
set -eu
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
then
cp $src/$fn $dst/$fn
fi
}
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
|