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:50:23 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2018-02-21 10:50:23 +0300
commitbb7f640102a1dddca278bf390dcd6249c7a3f1ea (patch)
treee448fb68857ed055387e46e263d00ec6c3a3b422 /Makefile.am
parentfdb23987f853cce41c06d348cf7191ec93c33fbd (diff)
....I..... [ZBX-11994] changed 'awk' to 'sed' for getting info about 'Last Changed Rev'
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 9f00c8b58d6..71414107b40 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@ 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;}'`; \
+ @zabbix_revision=`svn info $(top_srcdir)|sed -n -e "/Last Changed Rev:/s/.*: \([[0-9]]*\)/\1/p"`; \
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" > \