diff options
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/Makefile.am | 6 | ||||
-rw-r--r-- | src/statistics/test_gnunet_statistics.py.in | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/statistics/Makefile.am b/src/statistics/Makefile.am index 6d69d58d8..52f382156 100644 --- a/src/statistics/Makefile.am +++ b/src/statistics/Makefile.am | |||
@@ -84,15 +84,13 @@ check_SCRIPTS = \ | |||
84 | test_gnunet_statistics.py | 84 | test_gnunet_statistics.py |
85 | endif | 85 | endif |
86 | 86 | ||
87 | do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' | ||
88 | |||
89 | SUFFIXES = .py.in .py | 87 | SUFFIXES = .py.in .py |
90 | .py.in.py: | 88 | .py.in.py: |
91 | $(do_subst) < $(srcdir)/$< > $@ | 89 | $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/$< > $@ |
92 | chmod +x $@ | 90 | chmod +x $@ |
93 | 91 | ||
94 | test_gnunet_statistics.py: test_gnunet_statistics.py.in Makefile | 92 | test_gnunet_statistics.py: test_gnunet_statistics.py.in Makefile |
95 | $(do_subst) < $(srcdir)/test_gnunet_statistics.py.in > test_gnunet_statistics.py | 93 | $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_statistics.py.in > test_gnunet_statistics.py |
96 | chmod +x test_gnunet_statistics.py | 94 | chmod +x test_gnunet_statistics.py |
97 | 95 | ||
98 | EXTRA_DIST = \ | 96 | EXTRA_DIST = \ |
diff --git a/src/statistics/test_gnunet_statistics.py.in b/src/statistics/test_gnunet_statistics.py.in index 3a13c24f3..ce277b13e 100644 --- a/src/statistics/test_gnunet_statistics.py.in +++ b/src/statistics/test_gnunet_statistics.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | 2 | ||
3 | import os | 3 | import os |
4 | import sys | 4 | import sys |