[PATCH v2 08/20] po: detect zanata binary during configure time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently we had hard-coded `zanata` as a name of the binary, but
it can also be `zanata-cli`.

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

Notes:
    New in v2.

 m4/virt-external-programs.m4 | 2 ++
 po/Makefile.am               | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/m4/virt-external-programs.m4 b/m4/virt-external-programs.m4
index 0f995998c3..0fc6716529 100644
--- a/m4/virt-external-programs.m4
+++ b/m4/virt-external-programs.m4
@@ -87,4 +87,6 @@ AC_DEFUN([LIBVIRT_CHECK_EXTERNAL_PROGRAMS], [
 
   AC_PATH_PROG([EBTABLES_PATH], [ebtables], [/sbin/ebtables], [$LIBVIRT_SBIN_PATH])
   AC_DEFINE_UNQUOTED([EBTABLES_PATH], ["$EBTABLES_PATH"], [path to ebtables binary])
+
+  AC_PATH_PROGS([ZANATA], [zanata zanata-cli], [zanata])
 ])
diff --git a/po/Makefile.am b/po/Makefile.am
index 01f27a6e23..63c2f1483a 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -66,14 +66,14 @@ update-mini-po: $(POTFILE)
 	done
 
 push-pot: $(POTFILE)
-	zanata push \
+	$(ZANATA) push \
 		--project-config $(srcdir)/zanata.xml \
 		--push-type=source \
 		--trans-dir $(builddir) \
 		--src-dir $(srcdir)
 
 pull-po: $(POTFILE)
-	zanata pull \
+	$(ZANATA) pull \
 		--project-config $(srcdir)/zanata.xml \
 		--create-skeletons \
 		--trans-dir $(builddir) \
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux