summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-05 21:16:28 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-05 21:16:28 +0000
commit7913c3fc940dae7dadcb0046742715e92877641d (patch)
treee48d0100ac45310dc3c939bbf05f36055f44bf75 /contrib
parent345483b4d9c5ab1c464f55e0ade1a914fe7a78d8 (diff)
LRN: 0003-Make-pyexpect-a-module.patch
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Makefile.am15
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 5371730cc..e4b92bb2e 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -6,6 +6,9 @@ timeout_watchdog_SOURCES = \
timeout_watchdog.c
endif
+noinst_SCRIPTS = \
+ gnunet_pyexpect/gnunet_pyexpect.py
+
dist_pkgdata_DATA = \
gnunet-logo-color.png \
defaults.conf
@@ -14,7 +17,17 @@ EXTRA_DIST = \
coverage.sh \
hostlist.cgi \
hostlist.php \
- report.sh
+ report.sh \
+ gnunet_pyexpect/__init__.py \
+ gnunet_pyexpect/gnunet_pyexpect.py.in
+
+do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
+
+gnunet_pyexpect/gnunet_pyexpect.py: gnunet_pyexpect/gnunet_pyexpect.py.in Makefile
+ $(do_subst) < $(srcdir)/gnunet_pyexpect/gnunet_pyexpect.py.in > gnunet_pyexpect/gnunet_pyexpect.py
+ chmod +x gnunet_pyexpect/gnunet_pyexpect.py
+ chmod +x gnunet_pyexpect/__init__.py
+
# init_gnunet_redhat \
# init_gnunet_ubuntu \