diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2024-01-08 16:51:02 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2024-01-08 16:51:10 +0100 |
commit | 37156a7960f9f026bcd663ae0a0d5df616b15e6c (patch) | |
tree | 31b3dcdfbb963d60072ad836379f442ea348ddea | |
parent | f354d57ba87b5cefa7e27983ef8f375894e35a00 (diff) | |
download | gnunet-37156a7960f9f026bcd663ae0a0d5df616b15e6c.tar.gz gnunet-37156a7960f9f026bcd663ae0a0d5df616b15e6c.zip |
build: simplify gana update script
-rwxr-xr-x | scripts/gana_update.sh | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/scripts/gana_update.sh b/scripts/gana_update.sh index 0707433f5..0f2d17509 100755 --- a/scripts/gana_update.sh +++ b/scripts/gana_update.sh | |||
@@ -13,42 +13,35 @@ gana_update() | |||
13 | fi | 13 | fi |
14 | echo "Updating GANA..." | 14 | echo "Updating GANA..." |
15 | if existence recfmt; then | 15 | if existence recfmt; then |
16 | cwd=$PWD | 16 | GNUNET_SRC_ROOT=$PWD |
17 | cd contrib/gana || exit 1 | 17 | cd contrib/gana || exit 1 |
18 | # GNS | 18 | # GNS |
19 | echo "Updating GNS record types" | 19 | echo "Updating GNS record types" |
20 | cd gnu-name-system-record-types && \ | 20 | make -C gnu-name-system-record-types >/dev/null && \ |
21 | make >/dev/null && \ | 21 | cp gnu-name-system-record-types/gnu_name_system_record_types.h $GNUNET_SRC_ROOT/src/include/ || exit 1 |
22 | cp gnu_name_system_record_types.h ../../../src/include/ || exit 1 | ||
23 | echo "Creating default TLDs" | 22 | echo "Creating default TLDs" |
24 | cd ../gnu-name-system-default-tlds && \ | 23 | make -C gnu-name-system-default-tlds >/dev/null && \ |
25 | make >/dev/null && \ | 24 | cp gnu-name-system-default-tlds/tlds.conf $GNUNET_SRC_ROOT/src/service/gns || exit 1 |
26 | cp tlds.conf ../../../src/service/gns || exit 1 | ||
27 | echo "Creating default GNS protocol numbers" | 25 | echo "Creating default GNS protocol numbers" |
28 | cd ../gns-protocol-numbers && \ | 26 | make -C gns-protocol-numbers >/dev/null && \ |
29 | make >/dev/null && \ | 27 | cp gns-protocol-numbers/gnu_name_system_protocols.h $GNUNET_SRC_ROOT/src/include/ || exit 1 |
30 | cp gnu_name_system_protocols.h ../../../src/include/ || exit 1 | 28 | echo "Creating default GNS service port numbers" |
31 | echo "Creating default GNS service port nummbers" | 29 | make -C gns-service-port-numbers >/dev/null && \ |
32 | cd ../gns-service-port-numbers && \ | 30 | cp gns-service-port-numbers/gnu_name_system_service_ports.h $GNUNET_SRC_ROOT/src/include/ || exit 1 |
33 | make >/dev/null && \ | ||
34 | cp gnu_name_system_service_ports.h ../../../src/include/ || exit 1 | ||
35 | 31 | ||
36 | # Signatures | 32 | # Signatures |
37 | echo "Updating GNUnet signatures" | 33 | echo "Updating GNUnet signatures" |
38 | cd ../gnunet-signatures && \ | 34 | make -C gnunet-signatures >/dev/null && \ |
39 | make >/dev/null && \ | 35 | cp gnunet-signatures/gnunet_signatures.h $GNUNET_SRC_ROOT/src/include || exit 1 |
40 | cp gnunet_signatures.h ../../../src/include || exit 1 | ||
41 | # DHT Block Types | 36 | # DHT Block Types |
42 | echo "Updating DHT record types" | 37 | echo "Updating DHT record types" |
43 | cd ../gnunet-dht-block-types && \ | 38 | make -C gnunet-dht-block-types >/dev/null && \ |
44 | make >/dev/null && \ | 39 | cp gnunet-dht-block-types/gnunet_dht_block_types.h $GNUNET_SRC_ROOT/src/include || exit 1 |
45 | cp gnunet_dht_block_types.h ../../../src/include || exit 1 | ||
46 | echo "Generating GNUnet error types" | 40 | echo "Generating GNUnet error types" |
47 | cd ../gnunet-error-codes && \ | 41 | make -C gnunet-error-codes >/dev/null && \ |
48 | make >/dev/null && \ | 42 | cp gnunet-error-codes/gnunet_error_codes.h $GNUNET_SRC_ROOT/src/include && \ |
49 | cp gnunet_error_codes.h ../../../src/include && \ | 43 | cp gnunet-error-codes/gnunet_error_codes.c $GNUNET_SRC_ROOT/src/lib/util || exit 1 |
50 | cp gnunet_error_codes.c ../../../src/lib/util || exit 1 | 44 | cd $GNUNET_SRC_ROOT |
51 | cd $cwd | ||
52 | else | 45 | else |
53 | echo "ERROR: No recutils found! Unable to generate recent GANA headers and configs." | 46 | echo "ERROR: No recutils found! Unable to generate recent GANA headers and configs." |
54 | exit 1 | 47 | exit 1 |