Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11994

More civilized way to get last changed revision

XMLWordPrintable

    • Sprint 27, Sprint 28, Sprint 29
    • 0.5

      Suggested patch:

      Index: Makefile.am
      ===================================================================
      --- Makefile.am	(revision 66884)
      +++ Makefile.am	(working copy)
      @@ -20,7 +20,7 @@
       
       ## "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 --show-item last-changed-revision`; \
       	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" > \
      

            MVekslers Michael Veksler
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: