summaryrefslogtreecommitdiff
path: root/po/Makefile.in
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:09 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:09 +0000
commit6fceea28608be0fda32d94f59e1b1550774318a0 (patch)
tree9be4df525ab59533784ce0c8d441d61130b59e76 /po/Makefile.in
parent817e6294b42b3e4435f1b99728afc1dca84a6445 (diff)
Imported Upstream version 0.98upstream/0.98
Diffstat (limited to 'po/Makefile.in')
-rw-r--r--po/Makefile.in27
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 .. \