locale/Makefile in foreman_ansible-15.0.0 vs locale/Makefile in foreman_ansible-15.0.1
- old
+ new
@@ -29,22 +29,32 @@
pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
-t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
cat $@
! grep -q msgid $@
-%.edit.po:
+%.edit.po: %.po.time_stamp
touch $@
+# gettext will trash the .edit.po file if the time stamp doesn't exist or is older than the po file
+%.po.time_stamp: %.po
+ touch --reference $< $@
+
+# Prevent make from treating this as an intermediate file to be cleaned up
+.PRECIOUS: %.po.time_stamp
+
check: $(POXFILES)
# Unify duplicate translations
uniq-po:
for f in $(shell find ./ -name "*.po") ; do \
msguniq $$f -o $$f ; \
done
tx-pull: $(EDITFILES)
- cd .. && tx pull -f --all
+ # Initialize new languages
+ cd .. && tx pull -f --all --minimum-perc 50
+ # Force update all existing languages
+ cd .. && tx pull -f --minimum-perc 0
for f in $(EDITFILES) ; do \
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
done
tx-update: tx-pull