diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2021-12-20 10:59:42 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2021-12-20 10:59:42 +0100 |
commit | ed65e2cac3e720c226f8dec07ac37ab62578724e (patch) | |
tree | 67ff1ec66a29423cb173d6a07defcb4ad8e4baa6 | |
parent | 511058f7e97d46eebe74a8c14aaff81865faa860 (diff) | |
download | gnunet-ed65e2cac3e720c226f8dec07ac37ab62578724e.tar.gz gnunet-ed65e2cac3e720c226f8dec07ac37ab62578724e.zip |
BUILD: Kill build-common
-rw-r--r-- | .gitmodules | 3 | ||||
-rwxr-xr-x | bootstrap | 12 | ||||
-rw-r--r-- | contrib/Makefile.am | 6 | ||||
m--------- | contrib/build-common | 0 | ||||
-rw-r--r-- | contrib/conf/uncrustify.cfg | 19 | ||||
-rwxr-xr-x | contrib/conf/uncrustify_precommit | 2 | ||||
-rwxr-xr-x | doc/man/produce_html.sh.in | 9 | ||||
-rw-r--r-- | src/gns/gnunet-gns-proxy-setup-ca.in | 60 | ||||
-rwxr-xr-x | src/gns/test_gnunet_gns.sh.in | 9 |
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 | ||
@@ -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 | ||
106 | init_buildcommon_include() | ||
107 | { | ||
108 | cp contrib/build-common/Makefile.inc contrib/Makefile.inc || exit 1 | ||
109 | } | ||
110 | |||
111 | main() | 106 | main() |
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 | ||
38 | INITD_FILES = \ | 37 | INITD_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 | ||
227 | check_PROGRAMS = \ | 225 | check_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 | |||
4 | indent_columns = 2 | 4 | indent_columns = 2 |
5 | indent_with_tabs = 0 | 5 | indent_with_tabs = 0 |
6 | indent_case_brace = 2 | 6 | indent_case_brace = 2 |
7 | indent_label=-16 | 7 | indent_label=0 |
8 | 8 | ||
9 | code_width=80 | 9 | code_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 |
51 | nl_start_of_file=remove | 51 | nl_start_of_file=remove |
52 | nl_after_func_proto = 2 | ||
53 | nl_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! |
55 | nl_end_of_file=add | 53 | nl_end_of_file=add |
56 | nl_max_blank_in_func = 3 | ||
57 | nl_max = 3 | ||
58 | 54 | ||
59 | sp_inside_paren = remove | 55 | sp_inside_paren = remove |
60 | 56 | ||
@@ -73,7 +69,6 @@ sp_between_ptr_star = remove | |||
73 | sp_before_sparen = add | 69 | sp_before_sparen = add |
74 | 70 | ||
75 | sp_inside_fparen = remove | 71 | sp_inside_fparen = remove |
76 | sp_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)" |
79 | sp_func_call_paren = add | 74 | sp_func_call_paren = add |
@@ -81,15 +76,3 @@ sp_func_proto_paren = add | |||
81 | sp_func_proto_paren_empty = add | 76 | sp_func_proto_paren_empty = add |
82 | sp_func_def_paren = add | 77 | sp_func_def_paren = add |
83 | sp_func_def_paren_empty = add | 78 | sp_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 | ||
87 | sp_paren_paren = ignore | ||
88 | sp_inside_paren = remove | ||
89 | sp_bool = force | ||
90 | |||
91 | nl_func_type_name = force | ||
92 | #nl_branch_else = add | ||
93 | nl_else_brace = add | ||
94 | nl_elseif_brace = add | ||
95 | nl_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 ]; | |||
30 | then | 30 | then |
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." |
34 | fi | 34 | fi |
35 | exit $RET | 35 | exit $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 | ||
3 | if test -e @PKGDATADIRECTORY@/existence.sh | 3 | if command -v mandoc >/dev/null 2>&1; |
4 | then | ||
5 | . @PKGDATADIRECTORY@/existence.sh | ||
6 | else | ||
7 | . $dir/../../contrib/build-common/sh/lib.sh/existence.sh | ||
8 | fi | ||
9 | |||
10 | if existence mandoc; | ||
11 | then | 4 | then |
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 | ||
49 | dir=$(dirname "$0") | 49 | dir=$(dirname "$0") |
50 | 50 | ||
51 | if test -e @PKGDATADIRECTORY@/progname.sh | 51 | progname=${0##*/} |
52 | then | ||
53 | . @PKGDATADIRECTORY@/progname.sh | ||
54 | else | ||
55 | . $dir/../../contrib/build-common/sh/lib.sh/progname.sh | ||
56 | fi | ||
57 | 52 | ||
58 | if test -e @PKGDATADIRECTORY@/existence.sh | 53 | existence() { |
59 | then | 54 | command -v "$1" >/dev/null 2>&1 |
60 | . @PKGDATADIRECTORY@/existence.sh | 55 | } |
61 | else | 56 | |
62 | . $dir/../../contrib/build-common/sh/lib.sh/existence.sh | 57 | statusmsg() |
63 | fi | 58 | { |
59 | ${runcmd} echo "${tab}$@" | tee -a "${results}" | ||
60 | } | ||
61 | |||
62 | infomsg() | ||
63 | { | ||
64 | if [ x$verbosity = x1 ]; then | ||
65 | statusmsg "INFO:${tab}$@" | ||
66 | fi | ||
67 | } | ||
64 | 68 | ||
65 | if test -e @PKGDATADIRECTORY@/msg.sh | 69 | warningmsg() |
66 | then | 70 | { |
67 | . @PKGDATADIRECTORY@/msg.sh | 71 | statusmsg "WARNING:${tab}$@" |
68 | else | 72 | } |
69 | . $dir/../../contrib/build-common/sh/lib.sh/msg.sh | ||
70 | fi | ||
71 | 73 | ||
72 | if test -e @PKGDATADIRECTORY@/version_gnunet.sh | 74 | errormsg() |
73 | then | 75 | { |
74 | . @PKGDATADIRECTORY@/version_gnunet.sh | 76 | statusmsg "ERROR:${tab}$@" |
75 | else | 77 | } |
76 | . $dir/../../contrib/build-common/sh/lib.sh/version_gnunet.sh | 78 | |
77 | fi | 79 | linemsg() |
80 | { | ||
81 | statusmsg "=========================================" | ||
82 | } | ||
83 | |||
84 | |||
85 | print_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: |
80 | tab=' ' | 92 | tab=' ' |
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. |
9 | dir=$(dirname "$0") | 9 | dir=$(dirname "$0") |
10 | 10 | ||
11 | if test -e @PKGDATADIRECTORY@/existence.sh | 11 | existence() { |
12 | then | 12 | command -v "$1" >/dev/null 2>&1 |
13 | . @PKGDATADIRECTORY@/existence.sh | 13 | } |
14 | else | ||
15 | . $dir/../../contrib/build-common/sh/lib.sh/existence.sh | ||
16 | fi | ||
17 | 14 | ||
18 | LOCATION=`existence gnunet-config` | 15 | LOCATION=`existence gnunet-config` |
19 | if test -z $LOCATION; then | 16 | if test -z $LOCATION; then |