diff options
author | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2018-02-20 18:22:10 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2018-02-20 18:22:10 +0300 |
commit | 9125dd67e8fc79cd1f0800d3c8297bc6924d5bf3 (patch) | |
tree | 7f5bb7ef8df1625c7fc5315196172eeeed0b1c71 /Makefile.am | |
parent | e076e37f54e32ab05da9a4fe2706823181d4457d (diff) |
....I..... [ZBX-11994] improvement for solaris 11 system
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index a519abcba50..8608eeb07a0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,10 +20,12 @@ 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 -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; \ + 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 -i -e "s,{ZABBIX_REVISION},${ZBX_REV},g" $(top_distdir)/include/version.h + 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 rm -rf `find $(top_distdir) -name ".svn"` rm -f $(top_distdir)/include/config.h rm -f $(top_distdir)/frontends/php/conf/zabbix.conf.php |