From 0f9f1507cc4aab2321ff259a780ebb715ca280dc Mon Sep 17 00:00:00 2001 From: dsmith Date: Mon, 26 Feb 2007 19:29:47 +0000 Subject: 2007-02-26 David Smith * Makefile.am: Added 'update-examples' target that fixes paths in the example code we ship in the rpm. * Makefile.in: Regenerated from Makefile.am. * systemtap.spec.in: Calls "make update-examples" target to fix the path to systemtap in the example scripts. --- ChangeLog | 8 ++++++++ Makefile.am | 3 +++ Makefile.in | 3 +++ systemtap.spec.in | 1 + 4 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index b1c971b3..af0e767f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-02-26 David Smith + + * Makefile.am: Added 'update-examples' target that fixes paths in + the example code we ship in the rpm. + * Makefile.in: Regenerated from Makefile.am. + * systemtap.spec.in: Calls "make update-examples" target to fix + the path to systemtap in the example scripts. + 2007-02-25 Frank Ch. Eigler * elaborate.h (match_node, derived_probe_builder): Add diff --git a/Makefile.am b/Makefile.am index 94808fa0..4ece8e70 100644 --- a/Makefile.am +++ b/Makefile.am @@ -132,3 +132,6 @@ SUBDIRS = testsuite if BUILD_LKET_B2A SUBDIRS += runtime/lket/b2a endif + +update-examples: + find examples -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!$(bindir)/stap@' diff --git a/Makefile.in b/Makefile.in index a72a7fb8..2ab03fb7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1274,6 +1274,9 @@ uninstall-local: rm -rf $(DESTDIR)$(pkgdatadir) rm -rf $(DESTDIR)$(libexecdir)/$(PACKAGE) -rm -rf $(DESTDIR)$(localstatedir)/cache/$(PACKAGE) + +update-examples: + find examples -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!$(bindir)/stap@' # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/systemtap.spec.in b/systemtap.spec.in index e5f968e2..d5a6efcf 100644 --- a/systemtap.spec.in +++ b/systemtap.spec.in @@ -103,6 +103,7 @@ cd .. %configure %{?elfutils_config} make %{?_smp_mflags} +make update-examples %install rm -rf ${RPM_BUILD_ROOT} -- cgit