aboutsummaryrefslogtreecommitdiff
path: root/src/gns
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 /src/gns
parent511058f7e97d46eebe74a8c14aaff81865faa860 (diff)
downloadgnunet-ed65e2cac3e720c226f8dec07ac37ab62578724e.tar.gz
gnunet-ed65e2cac3e720c226f8dec07ac37ab62578724e.zip
BUILD: Kill build-common
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-gns-proxy-setup-ca.in60
-rwxr-xr-xsrc/gns/test_gnunet_gns.sh.in9
2 files changed, 39 insertions, 30 deletions
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