From b2007ee84ac2481eb18c01a5c18d80340bcb239c Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 13 Dec 2018 11:36:59 -0500 Subject: [PATCH] 2018-12-13 Fred Gleason * Added a 'make install' rule in 'apis/PyPAD/examples/' to install PyPAD scripts in '${libdir}/rivendell/PyPAD/'. * Fixed a typo in the pseudo-bangpath line in the example PyPAD scripts. --- ChangeLog | 5 +++++ apis/PyPAD/examples/Makefile.am | 11 +++++++++++ apis/PyPAD/examples/now_and_next.py | 2 +- apis/PyPAD/examples/pypad_filewrite.py | 2 +- apis/PyPAD/examples/pypad_udp.py | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 884ea1b4..ac1fe070 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18178,3 +18178,8 @@ * Documented the Python 3.4 dependency in 'INSTALL'. 2018-12-12 Fred Gleason * Renamed rdrlmd(8) to rdpadd(8). +2018-12-13 Fred Gleason + * Added a 'make install' rule in 'apis/PyPAD/examples/' to install + PyPAD scripts in '${libdir}/rivendell/PyPAD/'. + * Fixed a typo in the pseudo-bangpath line in the example PyPAD + scripts. diff --git a/apis/PyPAD/examples/Makefile.am b/apis/PyPAD/examples/Makefile.am index b4275c20..b983c146 100644 --- a/apis/PyPAD/examples/Makefile.am +++ b/apis/PyPAD/examples/Makefile.am @@ -20,6 +20,17 @@ ## ## Use automake to process this into a Makefile.in +install-exec-am: + mkdir -p $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD + ../../../helpers/install_python.sh now_and_next.py $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD/now_and_next.py + ../../../helpers/install_python.sh pypad_filewrite.py $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD/pypad_filewrite.py + ../../../helpers/install_python.sh pypad_udp.py $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD/pypad_udp.py + +uninstall-local: + rm -f $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD/now_and_next.py + rm -f $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD/pypad_filewrite.py + rm -f $(DESTDIR)$(prefix)/@RD_LIB_PATH@/rivendell/PyPAD/pypad_udp.py + EXTRA_DIST = now_and_next.py\ pypad_filewrite.py\ pypad_udp.py diff --git a/apis/PyPAD/examples/now_and_next.py b/apis/PyPAD/examples/now_and_next.py index e690e02c..a8d9c895 100755 --- a/apis/PyPAD/examples/now_and_next.py +++ b/apis/PyPAD/examples/now_and_next.py @@ -1,4 +1,4 @@ -#%PYTHON_BANGPATH% +#!%PYTHON_BANGPATH% # now_and_next.py # diff --git a/apis/PyPAD/examples/pypad_filewrite.py b/apis/PyPAD/examples/pypad_filewrite.py index 5519cf93..dcb67f44 100755 --- a/apis/PyPAD/examples/pypad_filewrite.py +++ b/apis/PyPAD/examples/pypad_filewrite.py @@ -1,4 +1,4 @@ -#%PYTHON_BANGPATH% +#!%PYTHON_BANGPATH% # pypad_filewrite.py # diff --git a/apis/PyPAD/examples/pypad_udp.py b/apis/PyPAD/examples/pypad_udp.py index c4c9fca1..7d6936fe 100755 --- a/apis/PyPAD/examples/pypad_udp.py +++ b/apis/PyPAD/examples/pypad_udp.py @@ -1,4 +1,4 @@ -#%PYTHON_BANGPATH% +#!%PYTHON_BANGPATH% # pypad_udp.py #