move "gana/" to caller

This allows for other prefix dirs to be used.

(domake): Consider $1 to be dir under ‘contrib/’.
(ensure): Likewise, for $2.
This commit is contained in:
Thien-Thi Nguyen 2022-06-04 08:59:14 -04:00
parent 93943bdb5b
commit baf00c0262
No known key found for this signature in database
GPG Key ID: 670322244C807502

View File

@ -5,8 +5,8 @@ set -eu
domake ()
{
# $1 -- dir under contrib/gana/
dir="contrib/gana/$1"
# $1 -- dir under contrib/
dir="contrib/$1"
make -C $dir
}
@ -14,10 +14,10 @@ domake ()
ensure ()
{
# $1 -- filename
# $2 -- src dir under contrib/gana/
# $2 -- src dir under contrib/
# $3 -- dst dir under ./
fn="$1"
src="contrib/gana/$2"
src="contrib/$2"
dst="./$3"
if ! diff $src/$fn $dst/$fn > /dev/null
@ -26,9 +26,9 @@ ensure ()
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 gana/gnu-taler-error-codes
ensure taler_error_codes.c gana/gnu-taler-error-codes src/util
ensure taler_error_codes.h gana/gnu-taler-error-codes src/include
domake gnu-taler-db-events
ensure taler_dbevents.h gnu-taler-db-events src/include
domake gana/gnu-taler-db-events
ensure taler_dbevents.h gana/gnu-taler-db-events src/include