[Pkg-sql-ledger-commit] r203 - trunk/debian
pkg-sql-ledger-commit-owner at lists.alioth.debian.org
pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Fri Feb 20 15:18:35 UTC 2009
Author: hertzog
Date: 2009-02-20 15:18:34 +0000 (Fri, 20 Feb 2009)
New Revision: 203
Added:
trunk/debian/create_utf8_locales.sh
Modified:
trunk/debian/changelog
trunk/debian/control
trunk/debian/rules
Log:
* Add UTF-8 variants of most translations (auto-converted from the existing
ones).
* Add recode to Build-Depends since debian/create_utf8_locales.sh need it.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2009-02-16 22:47:11 UTC (rev 202)
+++ trunk/debian/changelog 2009-02-20 15:18:34 UTC (rev 203)
@@ -1,3 +1,11 @@
+sql-ledger (2.8.23-2) UNRELEASED; urgency=low
+
+ * Add UTF-8 variants of most translations (auto-converted from the existing
+ ones).
+ * Add recode to Build-Depends since debian/create_utf8_locales.sh need it.
+
+ -- Raphael Hertzog <hertzog at debian.org> Fri, 20 Feb 2009 16:04:08 +0100
+
sql-ledger (2.8.23-1) unstable; urgency=low
* New upstream release:
Modified: trunk/debian/control
===================================================================
--- trunk/debian/control 2009-02-16 22:47:11 UTC (rev 202)
+++ trunk/debian/control 2009-02-20 15:18:34 UTC (rev 203)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Raphael Hertzog <hertzog at debian.org>
Uploaders: Petter Reinholdtsen <pere at debian.org>, Gerardo Reynoso <greynoso at tindes.com>
-Build-Depends: debhelper (>= 7), quilt
+Build-Depends: debhelper (>= 7), quilt, recode
Homepage: http://www.sql-ledger.com
Vcs-Svn: svn://svn.debian.org/pkg-sql-ledger/trunk
Vcs-Browser: http://svn.debian.org/wsvn/pkg-sql-ledger/trunk/?op=log
@@ -12,7 +12,7 @@
Package: sql-ledger
Architecture: all
Depends: ${perl:Depends}, apache2 | httpd, libdbd-pg-perl, ${misc:Depends}
-Suggests: texlive-latex-extra | tetex-extra, postgresql
+Suggests: texlive-latex-extra, postgresql
Description: A web based double-entry accounting program
Accounting data is stored in an SQL Server, for the display any text or
GUI browser can be used. The entire system is linked through a chart
Added: trunk/debian/create_utf8_locales.sh
===================================================================
--- trunk/debian/create_utf8_locales.sh (rev 0)
+++ trunk/debian/create_utf8_locales.sh 2009-02-20 15:18:34 UTC (rev 203)
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+locales=$*
+force=1
+if [ -z "$locales" ]; then
+ locales=*
+ force=
+fi
+
+for locale in $locales; do
+ # Skip bad directories
+ if [ ! -d $locale ]; then continue; fi
+ if echo "$locale" | grep -q -E "_(utf|big5)$"; then continue; fi
+ # Skip if utf dir already exist
+ if [ -d "${locale}_utf" -a -z "$force" ]; then continue; fi
+
+ # Copy the directory over, and then convert it
+ rm -rf "${locale}_utf"
+ cp -a $locale "${locale}_utf"
+ orig_charset=$(perl -ne "print \$1 if (/\((.*)\)/);" $locale/LANGUAGE)
+ if [ -z "$orig_charset" ]; then
+ echo "Warning: $locale/LANGUAGE doesn't specify charset, assume ISO-8859-1" >&2
+ fi
+ for file in ${locale}_utf/*; do
+ filename=$(basename $file)
+ if [ "$filename" = "LANGUAGE" ]; then
+ perl -i -pne "s/\(.*\)/(UTF-8)/ || s/\$/ (UTF-8)/" $file
+ continue
+ elif [ "$filename" = "locales.pl" ]; then
+ continue
+ fi
+ recode ${orig_charset:-ISO-8859-1}..utf8 $file
+ perl -i -pne "s/\{charset\}.*=\s*[\"']$orig_charset[\"']/\{charset\} = 'UTF-8'/" $file
+ done
+done
Property changes on: trunk/debian/create_utf8_locales.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/debian/rules
===================================================================
--- trunk/debian/rules 2009-02-16 22:47:11 UTC (rev 202)
+++ trunk/debian/rules 2009-02-20 15:18:34 UTC (rev 203)
@@ -14,6 +14,7 @@
sed -e 's|^\$$userspath = .*$$|$$userspath = "/var/lib/sql-ledger/users";|' \
-e 's|^\$$memberfile = .*$$|$$memberfile = "/var/lib/sql-ledger/users/members";|' \
sql-ledger.conf.default > sql-ledger.conf
+ cd locale && sh ../debian/create_utf8_locales.sh
dh install
# Build architecture-independent files here.
More information about the Pkg-sql-ledger-commit
mailing list