aboutsummaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-08-12 16:24:23 +0200
committerGitHub <noreply@github.com>2019-08-12 16:24:23 +0200
commit4e99e0e4c7e592fb9ddfe48165422e12593281a0 (patch)
tree830e44356aaca864f1bd93b384670489a32a8898 /po
parentfdcc55839df2334d7a7567de1f02f07ee7a69561 (diff)
downloadinitscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar
initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar.gz
initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar.bz2
initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar.xz
initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.zip
Fix missing python3 during build phase
Diffstat (limited to 'po')
-rw-r--r--po/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/po/Makefile b/po/Makefile
index abb0258d..02a58b08 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -38,7 +38,11 @@ POTFILES = $(shell ls ../network-scripts/* | grep -v ifcfg-) \
all: $(NLSPACKAGE).pot $(FMTCATALOGS)
$(NLSPACKAGE).pot: $(POTFILES)
- ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po
+ if [ -z "$(PYTHON)" ]; then \
+ ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po; \
+ else \
+ $(PYTHON) xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po; \
+ fi
if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
rm -f $(NLSPACKAGE).po; \
else \