diff options
Diffstat (limited to 'build/windows/installer/lang/Makefile.am')
-rw-r--r-- | build/windows/installer/lang/Makefile.am | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/build/windows/installer/lang/Makefile.am b/build/windows/installer/lang/Makefile.am new file mode 100644 index 0000000..9078bfe --- /dev/null +++ b/build/windows/installer/lang/Makefile.am @@ -0,0 +1,78 @@ +isl_in_files = \ + setup.isl.in +isl_files = $(isl_in_files:.isl.in=.isl) + +stamp_files = \ + stamp-isl + +CLEANFILES = $(isl_files) $(stamp_files) + +languages = \ + ca:[ca] \ + da:[da] \ + de:[de] \ + el:[el] \ + en: \ + en_GB:[en_GB] \ + eo:[eo] \ + es:[es] \ + eu:[eu] \ + fi:[fi] \ + fr:[fr] \ + gl:[gl] \ + hr:[hr] \ + hu:[hu] \ + id:[id] \ + is:[is] \ + it:[it] \ + ja:[ja] \ + ka:[ka] \ + ko:[ko] \ + lt:[lt] \ + lv:[lv] \ + mr:[mr] \ + nl:[nl] \ + pl:[pl] \ + pt:[pt] \ + pt_BR:[pt_BR] \ + ro:[ro] \ + ru:[ru] \ + sk:[sk] \ + sl:[sl] \ + sv:[sv] \ + tr:[tr] \ + uk:[uk] \ + vi:[vi] \ + zh_CN:[zh_CN] \ + zh_TW:[zh_TW] + +stamp-isl: setup.isl Makefile.am + @ \ + for lang in $(languages); do \ + code=`echo $$lang | cut -d: -f1`; \ + prefix=`echo $$lang | cut -d: -f2 | sed 's/[][]/\\\\\\0/g'`; \ + isl="$(srcdir)/$$code.setup.isl"; \ + echo " GEN $$isl"; \ + echo -ne "\\xEF\\xBB\\xBF" > "$$isl"; \ + sed '/^\w\+'"$$prefix"'=/{s/\(.\)'"$$prefix"'/\1/;n};/^\w.*=/d' $< >> "$$isl"; \ + done && \ + echo timestamp > stamp-isl + +setup.isl: setup.isl.in $(wildcard $(top_srcdir)/po-windows-installer/*.po) Makefile.am + $(AM_V_GEN) $(INTLTOOL_MERGE) $(top_srcdir)/po-windows-installer $< $(@) -d -u -c $(top_builddir)/po-windows-installer/.intltool-merge-cache + +all-local: $(stamp_files) + +clean-local: + @ \ + for lang in $(languages); do \ + code=`echo $$lang | cut -d: -f1`; \ + isl="$(srcdir)/$$code.setup.isl"; \ + echo " RM $$isl"; \ + rm -f "$$isl"; \ + done + +TESTS_ENVIRONMENT = \ + GIMP_TESTING_ABS_TOP_SRCDIR=@abs_top_srcdir@ + +TESTS = test-installer-langs.sh |