make GANA update more compatible with incremental compilation (fixes #6431)
This commit is contained in:
parent
c9fb8acd5b
commit
c8a370d911
10
bootstrap
10
bootstrap
@ -7,15 +7,7 @@ if ! git --version >/dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git submodule update --init
|
./contrib/gana.sh
|
||||||
|
|
||||||
# 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 ../../..
|
|
||||||
cp contrib/gana/gnu-taler-error-codes/taler_error_codes.h src/include/taler_error_codes.h
|
|
||||||
cp contrib/gana/gnu-taler-error-codes/taler_error_codes.c src/util/taler_error_codes.c
|
|
||||||
|
|
||||||
# This is more portable than `which' but comes with
|
# This is more portable than `which' but comes with
|
||||||
# the caveat of not(?) properly working on busybox's ash:
|
# the caveat of not(?) properly working on busybox's ash:
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 22192612aab2bf0a5e1e5d452b31fb47594698ee
|
Subproject commit 0a9293b4cf1df97c395dc96d7a8ba96cc1fb4664
|
@ -1,13 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Helper script to update to latest GANA
|
# Helper script to update to latest GANA
|
||||||
# Run from exchange/ main directory; make sure you have
|
# Run from exchange/ main directory.
|
||||||
# no uncommitted changes at the time of running the script.
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
cd contrib/gana
|
cd contrib/gana
|
||||||
git pull origin master
|
git pull origin master
|
||||||
cd ../..
|
cd ../..
|
||||||
git commit -a -S -m "synchronize with latest GANA"
|
|
||||||
./bootstrap
|
# Generate taler-error-codes.h in gana and copy it to
|
||||||
cd src/include
|
# src/include/taler_error_codes.h
|
||||||
make install
|
cd contrib/gana/gnu-taler-error-codes
|
||||||
cd ../..
|
make
|
||||||
|
cd ../../..
|
||||||
|
if ! diff contrib/gana/gnu-taler-error-codes/taler_error_codes.h src/include/taler_error_codes.h > /dev/null
|
||||||
|
then
|
||||||
|
echo "Deploying latest new GANA database..."
|
||||||
|
cp contrib/gana/gnu-taler-error-codes/taler_error_codes.h src/include/taler_error_codes.h
|
||||||
|
cp contrib/gana/gnu-taler-error-codes/taler_error_codes.c src/util/taler_error_codes.c
|
||||||
|
else
|
||||||
|
echo "GANA database already up-to-date"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user