Gentoo Archives: gentoo-doc-fi

From: Xavier Neys <neysx@g.o>
To: gentoo-doc-fi@l.g.o
Subject: Re: [gentoo-doc-fi] Handbookin 2004.3-käännös
Date: Wed, 24 Nov 2004 09:55:53
Message-Id: 41A45AA7.50807@gentoo.org
In Reply to: Re: [gentoo-doc-fi] Handbookin 2004.3-käännös by Flammie Pirinen
1 Flammie Pirinen wrote:
2 > Melkein viikko, ei mainittavaa: lyön cvs:ään ja bugit suljetaan lähiaikoina, mielenkiintoista :-)
3 >
4 > 2004-11-18, Flammie Pirinen sanoi, jotta:
5 >
6 >
7 >>2004.3 on potkittu testattavaksi, mukana aiemmin mainitut bugit, missä dokumentit ovat muuttuneet, plus nämä:
8 >>
9 >>http://bugs.gentoo.org/show_bug.cgi?id=71593
10 >>http://bugs.gentoo.org/show_bug.cgi?id=71594
11 >>http://bugs.gentoo.org/show_bug.cgi?id=71596
12 >>http://bugs.gentoo.org/show_bug.cgi?id=71597
13 >>http://bugs.gentoo.org/show_bug.cgi?id=71598
14 >>http://bugs.gentoo.org/show_bug.cgi?id=71599
15 >>
16 >>Esikatsella voi tavan mukaan www.gentoo.fi:ssä.
17 >>
18 >>...Jaha, toivottavasti tämän päivitetyn sylpheedin ääkköset särkyy lähetettäessä yhtä mielenkiintoisesti kuin paikallisesti.
19 >>
20 >>--
21 >>Flammie, Gentoo Linux Documentation's Finnish head translator.
22
23 I thought you might want to use the following script to convert your dates to
24 YYYY-MM-DD.
25
26
27 for x in *xml;do
28 D=`grep '^<date' $x |sed "s:^<date>\\(.*\\)</date>$:\\1:"`
29 if [ -n "$D" ]; then
30 DD=`echo $D|sed "s:^\\([0-9]*\\)\\..*$:\\1:"`
31 MO=`echo $D|sed "s:^[0-9]*\\. \\([^ ]*\\) [0-9]*$:\\1:"`
32 YYYY=`echo $D|sed "s:^[0-9]*\\. [^ ]* \\([0-9]*\\)$:\\1:"`
33 case $MO in
34 "tammikuuta") MM="01";;
35 "helmikuuta") MM="02";;
36 "maaliskuuta") MM="03";;
37 "huhtikuuta") MM="04";;
38 "toukokuuta") MM="05";;
39 "kesäkuuta") MM="06";;
40 "heinäkuuta") MM="07";;
41 "elokuuta") MM="08";;
42 "syyskuuta") MM="09";;
43 "lokakuuta") MM="10";;
44 "marraskuuta") MM="11";;
45 "joulukuuta") MM="12";;
46 esac;
47 echo "$x $D => `printf "%s-%s-%02d" $YYYY $MM $DD`"
48 grep -B 999 "^<date" $x |grep -v "^<date" > toto.xml
49 echo "<date>`printf "%s-%s-%02d" $YYYY $MM $DD`</date>" >> toto.xml
50 grep -A 9999 "^<date" $x |grep -v "^<date" >> toto.xml
51 mv toto.xml $x
52 fi
53 done
54
55
56
57 Hope it helps,
58 --
59 / Xavier Neys
60 \_ Gentoo Documentation Project
61 / French & Internationalisation Lead
62 \ http://www.gentoo.org/doc/en
63 /\

Attachments

File name MIME type
signature.asc application/pgp-signature