LRN: 0003-Make-pyexpect-a-module.patch
authorChristian Grothoff <christian@grothoff.org>
Fri, 5 Aug 2011 21:16:28 +0000 (21:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 5 Aug 2011 21:16:28 +0000 (21:16 +0000)
contrib/Makefile.am

index 5371730cc5045cdf18faf643dce272e1c723e6e9..e4b92bb2e87b86ede9ff2ff204cf7f1d0db2671d 100644 (file)
@@ -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 \