locale/Makefile in foreman_puppet-6.1.0 vs locale/Makefile in foreman_puppet-6.1.1

- old
+ new

@@ -4,12 +4,12 @@ # make all-mo (default) - generate MO files # make check - check translations using translate-tool # make tx-update - download and merge translations from Transifex # make clean - clean everything # -DOMAIN = foreman_puppet -VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version') +DOMAIN = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).name') +VERSION = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).version') POTFILE = $(DOMAIN).pot MOFILE = $(DOMAIN).mo POFILES = $(shell find . -name '$(DOMAIN).po') MOFILES = $(patsubst %.po,%.mo,$(POFILES)) POXFILES = $(patsubst %.po,%.pox,$(POFILES)) @@ -41,10 +41,10 @@ for f in $(shell find ./ -name "*.po") ; do \ msguniq $$f -o $$f ; \ done tx-pull: $(EDITFILES) - cd .. && tx pull -f + cd .. && tx pull -f --all for f in $(EDITFILES) ; do \ sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \ done tx-update: tx-pull