diff options
author | dsmith <dsmith> | 2007-02-26 19:29:47 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-02-26 19:29:47 +0000 |
commit | 0f9f1507cc4aab2321ff259a780ebb715ca280dc (patch) | |
tree | 2a4dc3f875cbad93a94a218452abbf1b12d57703 | |
parent | 45c6f4cc211caea36fb1cd4c244ef267b57de229 (diff) | |
download | systemtap-steved-0f9f1507cc4aab2321ff259a780ebb715ca280dc.tar.gz systemtap-steved-0f9f1507cc4aab2321ff259a780ebb715ca280dc.tar.xz systemtap-steved-0f9f1507cc4aab2321ff259a780ebb715ca280dc.zip |
2007-02-26 David Smith <dsmith@redhat.com>
* 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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | Makefile.in | 3 | ||||
-rw-r--r-- | systemtap.spec.in | 1 |
4 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2007-02-26 David Smith <dsmith@redhat.com> + + * 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 <fche@redhat.com> * 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} |