~ubuntu-branches/ubuntu/dapper/newt/dapper-updates

« back to all changes in this revision

Viewing changes to debian/create-utf8.sh

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-03-22 12:44:37 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050322124437-nuhl0pqjcijjno9z
Tags: 0.51.6-20ubuntu3
Add Xhosa translation (thanks, Adi Attar).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# run this shell script to create utf8 version.
3
 
 
4
 
set -e 
5
 
PWD=`pwd`
6
 
PACKAGENAME=`basename $PWD`
7
 
PACKAGENAMEUTF8=`echo $PACKAGENAME | sed 's/newt/newt-utf8/'`
8
 
ORIGTGZ=`echo $PACKAGENAME.orig.tar.gz | sed 's/-/_/'`
9
 
ORIGTGZUTF8=`echo $ORIGTGZ | sed 's/newt/newt-utf8/'`
10
 
 
11
 
 
12
 
if [ -d debian ]; then
13
 
    rm -rf  ../$PACKAGENAMEUTF8
14
 
    cp -a ../$PACKAGENAME  ../$PACKAGENAMEUTF8
15
 
    cp ../$ORIGTGZ ../$ORIGTGZUTF8
16
 
    cd ../$PACKAGENAMEUTF8
17
 
 
18
 
    # following code ripped off from fetchmail.
19
 
    (cd debian ;\
20
 
        sed -e 's/NEWT_TARGET=newt/binpackage=newt-utf8/' <rules > rules.new ;
21
 
        sed -e '1 s/newt (/newt-utf8 (/' \
22
 
        -e '2p' \
23
 
        -e '2s/.*/  * Auto-generated from the respective newt package/' \
24
 
        -e 's/closes:\ \+#/#/Ig' <changelog >>changelog.new ;
25
 
        mv -f control.utf8 control ;
26
 
        mv -f changelog.new changelog ;
27
 
        mv -f rules.new rules ;
28
 
        chmod +x rules ;
29
 
        for A in shlibs shlibs.local; do
30
 
            sed 's/libnewt0/libnewt-utf8-0/' < $A >$A.new
31
 
            mv -f $A.new $A
32
 
        done
33
 
        rm -f create-utf8.sh
34
 
    )
35
 
else
36
 
    echo "E: Please run this script within the debian source tree"
37
 
    exit 1
38
 
fi
39