aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/gnunet-logread
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-12-02 17:34:07 +0000
committerng0 <ng0@n0.is>2019-12-02 17:34:07 +0000
commit339d7a7d8ca789f9777501c3092e5c7ea0c4850a (patch)
tree5110bf9188f3c0c6d102cd4bf45d2325a5ff4136 /contrib/scripts/gnunet-logread
parent79ff68acae7e4774881d6bc53fc5c639da4a2e7b (diff)
parentfdf8c95a33fe6c81c93cd17ed7a38b8b55df7d54 (diff)
downloadgnunet-339d7a7d8ca789f9777501c3092e5c7ea0c4850a.tar.gz
gnunet-339d7a7d8ca789f9777501c3092e5c7ea0c4850a.zip
Merge branch 'master' into netbsd-supportnetbsd-support
Diffstat (limited to 'contrib/scripts/gnunet-logread')
-rw-r--r--contrib/scripts/gnunet-logread/Makefile.am14
-rwxr-xr-xcontrib/scripts/gnunet-logread/gnunet-logread.in2
2 files changed, 12 insertions, 4 deletions
diff --git a/contrib/scripts/gnunet-logread/Makefile.am b/contrib/scripts/gnunet-logread/Makefile.am
index 790b58fea..aa92dfe16 100644
--- a/contrib/scripts/gnunet-logread/Makefile.am
+++ b/contrib/scripts/gnunet-logread/Makefile.am
@@ -1,7 +1,7 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include 2AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3 3
4do_subst = $(AWK) -v py="$(PERL)" '{gsub("@PERLEXE@",py); print $$0}' 4do_subst = $(AWK) -v prl="$(PERL)" -v pfx="$(prefix)" '{if (/@SUBSTPREFIX@/) { gsub("@SUBSTPREFIX@",pfx)}; gsub("@PERLEXE@",prl); print $$0}'
5 5
6SUFFIXES = .in 6SUFFIXES = .in
7 7
@@ -17,9 +17,17 @@ CLEANFILES= \
17 gnunet-logread \ 17 gnunet-logread \
18 gnunet-logread-ipc-sdedit 18 gnunet-logread-ipc-sdedit
19 19
20if GNUNET_LOGREAD
21if HAVE_PERL
22bin_SCRIPTS = \
23 gnunet-logread-ipc \
24 $(CLEANFILES)
25else
20noinst_SCRIPTS = \ 26noinst_SCRIPTS = \
21 $(CLEANFILES) \ 27 gnunet-logread-ipc \
22 gnunet-logread-ipc 28 $(CLEANFILES)
29endif
30endif
23 31
24EXTRA_DIST = \ 32EXTRA_DIST = \
25 gnunet-logread.in \ 33 gnunet-logread.in \
diff --git a/contrib/scripts/gnunet-logread/gnunet-logread.in b/contrib/scripts/gnunet-logread/gnunet-logread.in
index e27c1d3fc..ce588b8e6 100755
--- a/contrib/scripts/gnunet-logread/gnunet-logread.in
+++ b/contrib/scripts/gnunet-logread/gnunet-logread.in
@@ -29,7 +29,7 @@ my %levels = ( NONE => 0, ERROR => 1, WARNING => 2, INFO => 4, DEBUG => 8 );
29 29
30# Message type numbers to names 30# Message type numbers to names
31my %msgtypes; 31my %msgtypes;
32my $prefix = $ENV{GNUNET_PREFIX} || '/usr'; 32my $prefix = $ENV{GNUNET_PREFIX} || '@SUBSTPREFIX@';
33my $filename = "$prefix/include/gnunet/gnunet_protocols.h"; 33my $filename = "$prefix/include/gnunet/gnunet_protocols.h";
34$ipc = $opts{s} || $DEFAULT_SOCKET; 34$ipc = $opts{s} || $DEFAULT_SOCKET;
35 35