File: gpe-tp.am

package info (click to toggle)
gpe-what 0.43-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 920 kB
  • sloc: sh: 8,792; ansic: 453; xml: 86; makefile: 30
file content (24 lines) | stat: -rw-r--r-- 953 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DIR_PO = po
DIR_TP = tp

#-- Fetch .po files from TP
freshen-po: linguas
	rm -rf tmp-po
	mkdir tmp-po
#	cd tmp-po; for LANG in $(LINGUAS); do wget $(TRANSLATION_SITE)/$(PACKAGE)/$$LANG.po; done
	cd tmp-po; ../$(DIR_TP)/po-wget-last ../$(DIR_TP)/postats $(PACKAGE)
	for LANG in $$(cat linguas); do if [ ! -f $(DIR_PO)/$$LANG.po ] || ! cmp -s $(DIR_PO)/$$LANG.po tmp-po/$$LANG.po ; then mv tmp-po/$$LANG.po $(DIR_PO)/$$LANG.po; echo "Updated $$LANG translation"; fi; done
	rm -rf tmp-po

#-- Extract LINGUAS from TP stat file
linguas: $(DIR_TP)/postats
	$(DIR_TP)/po-extract-linguas $(DIR_TP)/postats $(PACKAGE) > linguas
	@echo "linguas:::: " $(LINGUAS)

#-- Fetch TP stat file
$(DIR_TP)/postats: freshen-postats
freshen-postats:
	@echo "++++++++++++++++++++++++++++++++++++++"
	@echo "Freshen "$(DIR_TP)"/postats:"
	cd $(DIR_TP) && wget --timestamping http://www.iro.umontreal.ca/translation/data/postats
	@echo "++++++++++++++++++++++++++++++++++++++"