Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandrs Saveljevs <git-no-reply@zabbix.com>2011-03-10 13:04:38 +0300
committerAleksandrs Saveljevs <git-no-reply@zabbix.com>2011-03-10 13:04:38 +0300
commit003e3eda565b82fed4f8612ab109f43b3f134b28 (patch)
treee45a209a400f5a26bafb316696da32a9225fd8f4 /Makefile.am
parentd69d4208dfd0b748a52957dc853aa49fd775bcda (diff)
- [ZBXNEXT-555] Reverted to the old way of using sed: without "-i".
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 149477024c2..4f142dd94f8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,8 +19,12 @@ EXTRA_DIST = \
## "dist-hook" run after the distribution directory is filled, but before the actual tar (or shar) file is created.
dist-hook:
@zabbix_revision=`svn info|grep "Last Changed Rev"|awk '{print $$4;}'`; \
- sed -i "s/{ZABBIX_REVISION}/$$zabbix_revision/g" $(top_distdir)/include/common.h; \
- sed -i "s/{ZABBIX_REVISION}/$$zabbix_revision/g" $(top_distdir)/src/zabbix_java/src/com/zabbix/proxy/GeneralInformation.java
+ cat $(top_distdir)/include/common.h|sed "s/{ZABBIX_REVISION}/$$zabbix_revision/g" > $(top_distdir)/include/common.h.new; \
+ mv $(top_distdir)/include/common.h.new $(top_distdir)/include/common.h; \
+ cat $(top_distdir)/src/zabbix_java/src/com/zabbix/proxy/GeneralInformation.java|sed "s/{ZABBIX_REVISION}/$$zabbix_revision/g" > \
+ $(top_distdir)/src/zabbix_java/src/com/zabbix/proxy/GeneralInformation.java.new; \
+ mv $(top_distdir)/src/zabbix_java/src/com/zabbix/proxy/GeneralInformation.java.new \
+ $(top_distdir)/src/zabbix_java/src/com/zabbix/proxy/GeneralInformation.java
rm -rf `find $(top_distdir) -name ".svn"`
rm -f $(top_distdir)/create/data/data_test.sql