From 54d6b9281dc233e0b2acf26884073d973b7663de Mon Sep 17 00:00:00 2001 From: jcorgan Date: Tue, 4 Sep 2007 02:43:56 +0000 Subject: Merged r6271:6278 from jcorgan/t182 into trunk. Implements ticket:182. Created new top-level component, gr-utils, to hold commonly used utility scripts (originally in gnuradio-examples). These now install into the system path, allowing their use from wherever. Reorganization of gnuradio-examples component: * Commonly used utility scripts moved from python/usrp into gr-utils. * Examples now install into $(prefix)/share/gnuradio/examples/... * Channel coding examples moved into gr-trellis/src/examples, now install from there, only if gr-atsc itself is going to built and installed. * ATSC example scripts now install into example hierarchy * Cruft has been moved into 'limbo' in repository, do not get installed Trunk passes 'make distcheck'. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6279 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-atsc/src/python/Makefile.am | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'gr-atsc/src') diff --git a/gr-atsc/src/python/Makefile.am b/gr-atsc/src/python/Makefile.am index 952bfddb5..ffc7780df 100644 --- a/gr-atsc/src/python/Makefile.am +++ b/gr-atsc/src/python/Makefile.am @@ -21,7 +21,20 @@ include $(top_srcdir)/Makefile.common -EXTRA_DIST = run_tests.in +EXAMPLE_FILES = \ + README \ + btl-fsd.py \ + fpll.py \ + interp.py \ + xlate.py \ + viterbi-out.py + + +EXTRA_DIST = run_tests.in \ + $(EXAMPLE_FILES) + +ourdatadir = $(exampledir)/atsc +ourdata_DATA = $(EXAMPLE_FILES) TESTS = \ @@ -31,3 +44,12 @@ TESTS = \ noinst_PYTHON = \ atsc_utils.py \ qa_atsc.py + +# Make example scripts with #! executable +install-data-local: + for i in `find $(ourdatadir) -type f ! -perm 755`; do \ + if head -1 $$i | grep -q '^#!'; then \ + chmod 755 $$i; \ + echo "made executable: $$i"; \ + fi; \ + done -- cgit