aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2021-12-20 10:59:42 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2021-12-20 10:59:42 +0100
commited65e2cac3e720c226f8dec07ac37ab62578724e (patch)
tree67ff1ec66a29423cb173d6a07defcb4ad8e4baa6
parent511058f7e97d46eebe74a8c14aaff81865faa860 (diff)
downloadgnunet-ed65e2cac3e720c226f8dec07ac37ab62578724e.tar.gz
gnunet-ed65e2cac3e720c226f8dec07ac37ab62578724e.zip
BUILD: Kill build-common
-rw-r--r--.gitmodules3
-rwxr-xr-xbootstrap12
-rw-r--r--contrib/Makefile.am6
m---------contrib/build-common0
-rw-r--r--contrib/conf/uncrustify.cfg19
-rwxr-xr-xcontrib/conf/uncrustify_precommit2
-rwxr-xr-xdoc/man/produce_html.sh.in9
-rw-r--r--src/gns/gnunet-gns-proxy-setup-ca.in60
-rwxr-xr-xsrc/gns/test_gnunet_gns.sh.in9
9 files changed, 47 insertions, 73 deletions
diff --git a/.gitmodules b/.gitmodules
index 9773fb9d7..e69de29bb 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +0,0 @@
1[submodule "contrib/build-common"]
2 path = contrib/build-common
3 url = https://git.taler.net/build-common.git
diff --git a/bootstrap b/bootstrap
index 984c56cb3..c6253048c 100755
--- a/bootstrap
+++ b/bootstrap
@@ -40,8 +40,8 @@ check_uncrustify()
40{ 40{
41 if existence uncrustify; then 41 if existence uncrustify; then
42 echo "Installing uncrustify hook and configuration" 42 echo "Installing uncrustify hook and configuration"
43 ln -fs contrib/build-common/conf/uncrustify.cfg uncrustify.cfg 2> /dev/null 43 ln -fs contrib/conf/uncrustify.cfg uncrustify.cfg 2> /dev/null
44 ln -fs contrib/build-common/conf/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null 44 ln -fs contrib/conf/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null
45 else 45 else
46 echo "Uncrustify not detected, hook not installed." 46 echo "Uncrustify not detected, hook not installed."
47 echo "Please install uncrustify if you plan on doing development" 47 echo "Please install uncrustify if you plan on doing development"
@@ -65,7 +65,7 @@ check_yapf()
65 existence yapf3.9 || \ 65 existence yapf3.9 || \
66 existence yapf4.0; then 66 existence yapf4.0; then
67 echo "Installing yapf symlink" 67 echo "Installing yapf symlink"
68 ln -fs contrib/build-common/conf/.style.yapf .style.yapf 2> /dev/null 68 ln -fs contrib/conf/.style.yapf .style.yapf 2> /dev/null
69 else 69 else
70 echo "yapf not detected, please install yapf if you plan on contributing python code" 70 echo "yapf not detected, please install yapf if you plan on contributing python code"
71 fi 71 fi
@@ -103,16 +103,10 @@ submodules()
103 fi 103 fi
104} 104}
105 105
106init_buildcommon_include()
107{
108 cp contrib/build-common/Makefile.inc contrib/Makefile.inc || exit 1
109}
110
111main() 106main()
112{ 107{
113 cleanup 108 cleanup
114 submodules 109 submodules
115 init_buildcommon_include
116 check_uncrustify 110 check_uncrustify
117 check_yapf 111 check_yapf
118 check_libtool 112 check_libtool
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index e0370d3c9..4e7928c7e 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -32,8 +32,7 @@ dist_pkgdata_DATA = \
32 netjail/netjail_exec.sh \ 32 netjail/netjail_exec.sh \
33 netjail/netjail_start.sh \ 33 netjail/netjail_start.sh \
34 netjail/netjail_stop.sh \ 34 netjail/netjail_stop.sh \
35 netjail/topo.sh \ 35 netjail/topo.sh
36 $(BUILDCOMMON_SHLIB_FILES)
37 36
38INITD_FILES = \ 37INITD_FILES = \
39 services/systemd/gnunet-user.service \ 38 services/systemd/gnunet-user.service \
@@ -221,8 +220,7 @@ EXTRA_DIST = \
221 patches/lrn-indent.diff \ 220 patches/lrn-indent.diff \
222 test_gnunet_prefix.c \ 221 test_gnunet_prefix.c \
223 $(PACKAGES_FILES) \ 222 $(PACKAGES_FILES) \
224 $(INITD_FILES) \ 223 $(INITD_FILES)
225 $(BUILD_COMMON_FILES)
226 224
227check_PROGRAMS = \ 225check_PROGRAMS = \
228 test_gnunet_prefix 226 test_gnunet_prefix
diff --git a/contrib/build-common b/contrib/build-common
deleted file mode 160000
Subproject 1915a74bbb4cd2ae9bc541a382dfebc37064a2f
diff --git a/contrib/conf/uncrustify.cfg b/contrib/conf/uncrustify.cfg
index 8c9df2c43..6ced05d7a 100644
--- a/contrib/conf/uncrustify.cfg
+++ b/contrib/conf/uncrustify.cfg
@@ -4,7 +4,7 @@ output_tab_size = 2
4indent_columns = 2 4indent_columns = 2
5indent_with_tabs = 0 5indent_with_tabs = 0
6indent_case_brace = 2 6indent_case_brace = 2
7indent_label=-16 7indent_label=0
8 8
9code_width=80 9code_width=80
10#cmd_width=80 10#cmd_width=80
@@ -49,12 +49,8 @@ nl_assign_brace=remove
49 49
50# No extra newlines that cause noisy diffs 50# No extra newlines that cause noisy diffs
51nl_start_of_file=remove 51nl_start_of_file=remove
52nl_after_func_proto = 2
53nl_after_func_body = 3
54# If there's no new line, it's not a text file! 52# If there's no new line, it's not a text file!
55nl_end_of_file=add 53nl_end_of_file=add
56nl_max_blank_in_func = 3
57nl_max = 3
58 54
59sp_inside_paren = remove 55sp_inside_paren = remove
60 56
@@ -73,7 +69,6 @@ sp_between_ptr_star = remove
73sp_before_sparen = add 69sp_before_sparen = add
74 70
75sp_inside_fparen = remove 71sp_inside_fparen = remove
76sp_inside_sparen = remove
77 72
78# add space before function call and decl: "foo (x)" 73# add space before function call and decl: "foo (x)"
79sp_func_call_paren = add 74sp_func_call_paren = add
@@ -81,15 +76,3 @@ sp_func_proto_paren = add
81sp_func_proto_paren_empty = add 76sp_func_proto_paren_empty = add
82sp_func_def_paren = add 77sp_func_def_paren = add
83sp_func_def_paren_empty = add 78sp_func_def_paren_empty = add
84
85# We'd want it for "if ( (foo) || (bar) )", but not for "if (m())",
86# so as uncrustify doesn't give exactly what we want => ignore
87sp_paren_paren = ignore
88sp_inside_paren = remove
89sp_bool = force
90
91nl_func_type_name = force
92#nl_branch_else = add
93nl_else_brace = add
94nl_elseif_brace = add
95nl_for_brace = add
diff --git a/contrib/conf/uncrustify_precommit b/contrib/conf/uncrustify_precommit
index 24873330f..fd29998c3 100755
--- a/contrib/conf/uncrustify_precommit
+++ b/contrib/conf/uncrustify_precommit
@@ -30,6 +30,6 @@ if [ $RET = 1 ];
30then 30then
31 echo "Run" 31 echo "Run"
32 echo "uncrustify --no-backup -c uncrustify.cfg ${crustified}" 32 echo "uncrustify --no-backup -c uncrustify.cfg ${crustified}"
33 echo "before committing." 33 echo "before commiting."
34fi 34fi
35exit $RET 35exit $RET
diff --git a/doc/man/produce_html.sh.in b/doc/man/produce_html.sh.in
index 8680c0106..e9581622f 100755
--- a/doc/man/produce_html.sh.in
+++ b/doc/man/produce_html.sh.in
@@ -1,13 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2 2
3if test -e @PKGDATADIRECTORY@/existence.sh 3if command -v mandoc >/dev/null 2>&1;
4then
5 . @PKGDATADIRECTORY@/existence.sh
6else
7 . $dir/../../contrib/build-common/sh/lib.sh/existence.sh
8fi
9
10if existence mandoc;
11then 4then
12 for f in `find . -name \*\.[1-9]`; 5 for f in `find . -name \*\.[1-9]`;
13 do 6 do
diff --git a/src/gns/gnunet-gns-proxy-setup-ca.in b/src/gns/gnunet-gns-proxy-setup-ca.in
index 9a298f24a..b3ebfd11d 100644
--- a/src/gns/gnunet-gns-proxy-setup-ca.in
+++ b/src/gns/gnunet-gns-proxy-setup-ca.in
@@ -48,33 +48,45 @@
48 48
49dir=$(dirname "$0") 49dir=$(dirname "$0")
50 50
51if test -e @PKGDATADIRECTORY@/progname.sh 51progname=${0##*/}
52then
53 . @PKGDATADIRECTORY@/progname.sh
54else
55 . $dir/../../contrib/build-common/sh/lib.sh/progname.sh
56fi
57 52
58if test -e @PKGDATADIRECTORY@/existence.sh 53existence() {
59then 54 command -v "$1" >/dev/null 2>&1
60 . @PKGDATADIRECTORY@/existence.sh 55}
61else 56
62 . $dir/../../contrib/build-common/sh/lib.sh/existence.sh 57statusmsg()
63fi 58{
59 ${runcmd} echo "${tab}$@" | tee -a "${results}"
60}
61
62infomsg()
63{
64 if [ x$verbosity = x1 ]; then
65 statusmsg "INFO:${tab}$@"
66 fi
67}
64 68
65if test -e @PKGDATADIRECTORY@/msg.sh 69warningmsg()
66then 70{
67 . @PKGDATADIRECTORY@/msg.sh 71 statusmsg "WARNING:${tab}$@"
68else 72}
69 . $dir/../../contrib/build-common/sh/lib.sh/msg.sh
70fi
71 73
72if test -e @PKGDATADIRECTORY@/version_gnunet.sh 74errormsg()
73then 75{
74 . @PKGDATADIRECTORY@/version_gnunet.sh 76 statusmsg "ERROR:${tab}$@"
75else 77}
76 . $dir/../../contrib/build-common/sh/lib.sh/version_gnunet.sh 78
77fi 79linemsg()
80{
81 statusmsg "========================================="
82}
83
84
85print_version()
86{
87 GNUNET_ARM_VERSION=`gnunet-arm -v | awk '{print $2 " " $3}'`
88 echo ${progname} $GNUNET_ARM_VERSION
89}
78 90
79# Whitespace normalization without depending on shell features: 91# Whitespace normalization without depending on shell features:
80tab=' ' 92tab=' '
diff --git a/src/gns/test_gnunet_gns.sh.in b/src/gns/test_gnunet_gns.sh.in
index 8a96ff034..d0c07b4e4 100755
--- a/src/gns/test_gnunet_gns.sh.in
+++ b/src/gns/test_gnunet_gns.sh.in
@@ -8,12 +8,9 @@
8# but this works for now. 8# but this works for now.
9dir=$(dirname "$0") 9dir=$(dirname "$0")
10 10
11if test -e @PKGDATADIRECTORY@/existence.sh 11existence() {
12then 12 command -v "$1" >/dev/null 2>&1
13 . @PKGDATADIRECTORY@/existence.sh 13}
14else
15 . $dir/../../contrib/build-common/sh/lib.sh/existence.sh
16fi
17 14
18LOCATION=`existence gnunet-config` 15LOCATION=`existence gnunet-config`
19if test -z $LOCATION; then 16if test -z $LOCATION; then