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:
authorMichael Veksler <Mihails.Vekslers@zabbix.com>2018-02-21 10:41:58 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2018-02-21 10:41:58 +0300
commitfdb23987f853cce41c06d348cf7191ec93c33fbd (patch)
tree6981856cca5f30c6cc5f16ee2b1ae661babbc8b8 /Makefile.am
parent4ec09b788679bb124f3cc55c5d8e1147b6b083d0 (diff)
.......... [ZBX-11994] Rolled back to r76923
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 8608eeb07a0..9f00c8b58d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,13 +19,14 @@ EXTRA_DIST = \
## "dist-hook" run after the distribution directory is filled, but before the actual tar (or shar) file is created.
dist-hook:
- @if [ -f $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java ]; then \
- sed -e "s,\([\t ]*static final String ZABBIX_VERSION_REVISION =[\t ]*\).*,\1\"${ZBX_REV}\";," \
- $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java > $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java.new; \
- mv $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java.new $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java; \
- fi
- sed -e "s,{ZABBIX_REVISION},${ZBX_REV},g" $(top_distdir)/include/version.h > $(top_distdir)/include/version.h.new; \
- mv $(top_distdir)/include/version.h.new $(top_distdir)/include/version.h
+ @zabbix_revision=`svn info|grep "Last Changed Rev"|awk '{print $$4;}'`; \
+ cat $(top_distdir)/include/version.h|sed "s/{ZABBIX_REVISION}/$$zabbix_revision/g" > $(top_distdir)/include/version.h.new; \
+ mv $(top_distdir)/include/version.h.new $(top_distdir)/include/version.h; \
+ cat $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java|sed "s/{ZABBIX_REVISION}/$$zabbix_revision/g" > \
+ $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java.new; \
+ mv $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java.new \
+ $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java
+
rm -rf `find $(top_distdir) -name ".svn"`
rm -f $(top_distdir)/include/config.h
rm -f $(top_distdir)/frontends/php/conf/zabbix.conf.php