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-20 17:42:07 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2018-02-20 17:42:07 +0300
commitca2f38970c4fa653baef90caac04a4f02b8a576c (patch)
tree8789506aed22efc5036e73502a0389bd0e9af348 /Makefile.am
parentf470fc21e38bf210a8f1010edca39651447a66bd (diff)
....I..... [ZBX-11994] logic simplification and format modification as LCR/svnversion
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 71c80d88dcc..a519abcba50 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,8 +19,11 @@ EXTRA_DIST = \
## "dist-hook" run after the distribution directory is filled, but before the actual tar (or shar) file is created.
dist-hook:
- sed -i -e "s/\([\t ]*static final String ZABBIX_VERSION_REVISION =[\t ]*\).*/\1\"${ZBX_REV}\";/" \
- $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java
+ @if [ -f $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java ]; then \
+ sed -i -e "s,\([\t ]*static final String ZABBIX_VERSION_REVISION =[\t ]*\).*,\1\"${ZBX_REV}\";," \
+ $(top_distdir)/src/zabbix_java/src/com/zabbix/gateway/Revision.java; \
+ fi
+ sed -i -e "s,{ZABBIX_REVISION},${ZBX_REV},g" $(top_distdir)/include/version.h
rm -rf `find $(top_distdir) -name ".svn"`
rm -f $(top_distdir)/include/config.h
rm -f $(top_distdir)/frontends/php/conf/zabbix.conf.php