~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to debian/locale-gen

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-mr2oo53y4j8vpldi
Tags: 3.1~a1+20090322-1
* Python 3.1 alpha1 release.
* Update to the trunk, 20090322.
* Update installation schemes: LP: #338395.
  - When the --prefix option is used for setup.py install, Use the
    `unix_prefix' scheme.
  - Use the `deb_system' scheme if --install-layout=deb is specified.
  - Use the the `unix_local' scheme if neither --install-layout=deb
    nor --prefix is specified.
* Use the information in /etc/lsb-release for platform.dist(). LP: #196526.
* pydoc: Fix detection of local documentation files.
* Build a shared library configured --with-pydebug. LP: #322580.
* Fix some lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
LOCPATH=`pwd`/locales
 
4
export LOCPATH
 
5
 
 
6
[ -d $LOCPATH ] || mkdir -p $LOCPATH
 
7
 
 
8
umask 022
 
9
 
 
10
echo "Generating locales..."
 
11
while read locale charset; do
 
12
        case $locale in \#*) continue;; esac
 
13
        [ -n "$locale" -a -n "$charset" ] || continue
 
14
        echo -n "  `echo $locale | sed 's/\([^.\@]*\).*/\1/'`"
 
15
        echo -n ".$charset"
 
16
        echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`
 
17
        echo -n '...'
 
18
        if [ -f $LOCPATH/$locale ]; then
 
19
            input=$locale
 
20
        else
 
21
            input=`echo $locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`
 
22
        fi
 
23
        localedef -i $input -c -f $charset $LOCPATH/$locale #-A /etc/locale.alias
 
24
        echo ' done'; \
 
25
done <<EOF
 
26
# This file lists locales that the python testsuite depends on
 
27
en_US                   ISO-8859-1
 
28
en_US.UTF-8             UTF-8
 
29
EOF
 
30
 
 
31
echo "Generation complete."