2
# run this shell script to create utf8 version.
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/'`
12
if [ -d debian ]; then
13
rm -rf ../$PACKAGENAMEUTF8
14
cp -a ../$PACKAGENAME ../$PACKAGENAMEUTF8
15
cp ../$ORIGTGZ ../$ORIGTGZUTF8
16
cd ../$PACKAGENAMEUTF8
18
# following code ripped off from fetchmail.
20
sed -e 's/NEWT_TARGET=newt/binpackage=newt-utf8/' <rules > rules.new ;
21
sed -e '1 s/newt (/newt-utf8 (/' \
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 ;
29
for A in shlibs shlibs.local; do
30
sed 's/libnewt0/libnewt-utf8-0/' < $A >$A.new
36
echo "E: Please run this script within the debian source tree"