summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsmith <dsmith>2007-02-26 19:29:47 +0000
committerdsmith <dsmith>2007-02-26 19:29:47 +0000
commit0f9f1507cc4aab2321ff259a780ebb715ca280dc (patch)
tree2a4dc3f875cbad93a94a218452abbf1b12d57703
parent45c6f4cc211caea36fb1cd4c244ef267b57de229 (diff)
downloadsystemtap-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--ChangeLog8
-rw-r--r--Makefile.am3
-rw-r--r--Makefile.in3
-rw-r--r--systemtap.spec.in1
4 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b1c971b3..af0e767f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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}