From 7913c3fc940dae7dadcb0046742715e92877641d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 5 Aug 2011 21:16:28 +0000 Subject: [PATCH] LRN: 0003-Make-pyexpect-a-module.patch --- contrib/Makefile.am | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 \ -- 2.25.1