diff options
author | Julien BLACHE <jblache@debian.org> | 2005-11-21 21:49:19 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:12 +0000 |
commit | 91e0f8f4872781ae41c44747330935d6420534e6 (patch) | |
tree | 39db641abe297fb735853015b906d7763651941e /po/Makefile.in | |
parent | 13a92fd57322d6de4548e7dc992db591a0a54ee3 (diff) | |
parent | 6fceea28608be0fda32d94f59e1b1550774318a0 (diff) |
Imported Debian patch 0.98-1debian/0.98-1
Diffstat (limited to 'po/Makefile.in')
-rw-r--r-- | po/Makefile.in | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/po/Makefile.in b/po/Makefile.in index d3c3932..c30521e 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -213,15 +213,30 @@ update-po: Makefile fi; \ done -utf8: - for LNG in *.po ; do \ - FORMAT=`grep charset $$LNG | sed -e '{ s/Content-Type: text\/plain; charset=//g ; s/\\\n// ; s/\"//g ; }'` ;\ - echo recoding $$LNG\($$FORMAT\) to UTF-8/$$LNG\(UTF-8\);\ +import-po-files_old: + for LNG in $(POFILES) ; do \ + FORMAT=`grep charset IMPORT_PO_DIR/$$LNG | sed -e '{ s/Content-Type: text\/plain; charset=//g ; s/\\\n// ; s/\"//g ; }'` ;\ COMMAND="s/"$$FORMAT"/UTF-8/g" ;\ - cat $$LNG | sed -e $$COMMAND >UTF-8/$$LNG ;\ - recode $$FORMAT..UTF-8 UTF-8/$$LNG ;\ + echo recoding IMPORT_PO_DIR/$$LNG\($$FORMAT\) to $$LNG\(UTF-8\);\ + cat IMPORT_PO_DIR/$$LNG | sed -e $$COMMAND >$$LNG ;\ + recode $$FORMAT..UTF-8 $$LNG ;\ + mv IMPORT_PO_DIR/$$LNG IMPORT_PO_DIR/$$LNG.import_done done +import-po-files: + @cd IMPORT_PO_DIR ;\ + for LNG in *.po ; do \ + if test -r $$LNG; then \ + FORMAT=`grep charset $$LNG | sed -e '{ s/Content-Type: text\/plain; charset=//g ; s/\\\n// ; s/\"//g ; }'` ;\ + COMMAND="s/"$$FORMAT"/UTF-8/g" ;\ + echo recoding $$LNG\($$FORMAT\) to ../$$LNG\(UTF-8\);\ + cat $$LNG | sed -e $$COMMAND >../$$LNG ;\ + recode $$FORMAT..UTF-8 ../$$LNG ;\ + mv $$LNG $$LNG.import_done ;\ + fi ;\ + done + + Makefile: Makefile.in ../config.status cd .. \ |