summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-09-11 14:56:56 +0200
committerWerner Koch <wk@gnupg.org>2002-09-11 14:56:56 +0200
commit0bdb35336356a6e785c58668f75d9e7c0625ccb3 (patch)
tree761e3d09a3edcb508cbe8b9bdf2ccc57d28436ed /scripts
parentUpdated texi files (diff)
downloadgnupg2-0bdb35336356a6e785c58668f75d9e7c0625ccb3.tar.xz
gnupg2-0bdb35336356a6e785c58668f75d9e7c0625ccb3.zip
* mk-w32-dist: Convert the character sets on a per language base.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ChangeLog4
-rwxr-xr-xscripts/mk-w32-dist20
2 files changed, 23 insertions, 1 deletions
diff --git a/scripts/ChangeLog b/scripts/ChangeLog
index 0d71c8972..04496455e 100644
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-11 Werner Koch <wk@gnupg.org>
+
+ * mk-w32-dist: Convert the character sets on a per language base.
+
2002-09-02 Werner Koch <wk@gnupg.org>
* mk-w32-dist: Include more man pages and gpg split. Changed name
diff --git a/scripts/mk-w32-dist b/scripts/mk-w32-dist
index 87207a50c..4f27a99b2 100755
--- a/scripts/mk-w32-dist
+++ b/scripts/mk-w32-dist
@@ -62,7 +62,25 @@ for i in README.W32 gnupg-w32.reg; do
todos $i
done
-for i in ${srcdir}/po/*.gmo; do ln $i "$(basename $i .gmo).mo" ; done
+
+for i in ${srcdir}/po/*.po; do
+ lang=$(basename $i .po)
+ fromset=`sed -n '/^"Content-Type:/ s/.*charset=\([a-zA-Z0-9_-]*\).*/\1/p' $i`
+ case $lang in
+ cs|pl) toset="CP1250" ;;
+ el|eo|et|ja|tr) toset="" ;;
+ *) toset="CP850" ;;
+ esac
+ if [ -n "$toset" ]; then
+ echo "$lang: converting from $fromset to $toset" >&2
+ iconv --silent --from-code=$fromset --to-code=$toset < $i | \
+ sed "/^\"Content-Type:/ s/charset=[a-zA-Z0-9_-]*/charset=$toset/" | \
+ msgfmt --output-file=$lang.mo -
+ else
+ echo "$lang: keeping $fromset" >&2
+ msgfmt --output-file=$lang.mo $i
+ fi
+done
zip -9 "gnupg-w32cli-${version}.zip" *