|
From: G K. <kar...@us...> - 2005-09-30 11:24:18
|
Update of /cvsroot/indlinux/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21735 Modified Files: ChangeLog README Added Files: updatepo.sh updkde.sh Log Message: scripts to assist translation updates --- NEW FILE: updatepo.sh --- #!/bin/bash # change gnome-2.6 to gnome-2.4 for gnome 2.4 BASE=http://l10n-status.gnome.org/gnome-2.12/PO #rm -f index.html potlist polist* #wget -c $BASE/ # cut field no may change cat index.html | cut -f 6 -d\" | grep pot > potlist cat index.html | cut -f 6 -d\" | grep "hi.po" > polisthi cat index.html | cut -f 6 -d\" | grep "bn.po" > polistbn cat index.html | cut -f 6 -d\" | grep "pa.po" > polistpa cat index.html | cut -f 6 -d\" | grep "kn.po" > polistkn cat index.html | cut -f 6 -d\" | grep "mr.po" > polistmr cat index.html | cut -f 6 -d\" | grep "te.po" > polistte cat index.html | cut -f 6 -d\" | grep "or.po" > polistor cat index.html | cut -f 6 -d\" | grep "ta.po" > polistta cat index.html | cut -f 6 -d\" | grep "ml.po" > polistml cat index.html | cut -f 6 -d\" | grep "ne.po" > polistne cat index.html | cut -f 6 -d\" | grep "gu.po" > polistgu #for i in `cat potlist` ; do # echo $i # wget -c $i #done for i in `cat polist*` ; do echo "getting $i" wget -c $i done --- NEW FILE: updkde.sh --- #!/bin/bash # will merge 3.2 branch with HEAD. # head templates in head, 3.2 po files in kde32 HBASE=/workarea/kdeupd/POTS BBASE=/workarea/kdeupd/templates for module in `cat mods` ; do echo "Entering module $module ........" # if [ -d "$HBASE/$module" ] ; then cd $HBASE/$module/ pwd for pos in `ls *.pot` ; do echo "" echo "" echo "POT file is $pos" fname=`echo $pos | cut -f 1 -d\. ` if [ -f "$BBASE/$module/$fname.po" ] ; then echo "found PO file $BBASE/$module/$fname.po :-)" msgfmt -cv $BBASE/$module/$fname.po echo "Merging $fname.pot with old translation ..." msgmerge -o $fname.po $BBASE/$module/$fname.po $HBASE/$module/$fname.pot msgfmt -cv $fname.po rm -f messages.mo else echo "PO file for $fname.pot not found !!!" fi sleep 1 done cd ../.. # fi done Index: ChangeLog =================================================================== RCS file: /cvsroot/indlinux/scripts/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ChangeLog 26 Apr 2003 07:53:07 -0000 1.2 --- ChangeLog 30 Sep 2005 11:24:07 -0000 1.3 *************** *** 1,2 **** --- 1,6 ---- + 2005-09-30 Karunakar <kar...@in... + + * added updkde.sh, updatepo.sh + 2003-04-26 mary <ma...@sa...> *************** *** 5,7 **** 2003-04-12 Guntupalli Karunakar <kar...@fr...> ! * Initial checkin of scripts module \ No newline at end of file --- 9,11 ---- 2003-04-12 Guntupalli Karunakar <kar...@fr...> ! * Initial checkin of scripts module Index: README =================================================================== RCS file: /cvsroot/indlinux/scripts/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README 10 May 2004 15:21:50 -0000 1.2 --- README 30 Sep 2005 11:24:07 -0000 1.3 *************** *** 31,32 **** --- 31,48 ---- Appropriately make entries in ChangeLog file also. + + SCRIPT NAME: KDE translation updates + FILENAME: updkde.sh + PURPOSE: updates a set of translations (PO files) wrt templates (POT files) for specific release. + AUTHOR: Karunakar + EMAIL: kar...@in... + DATE: 30-09-2005 + LICENSE: GNU GPL + + SCRIPT NAME: Gnome translations downloader + FILENAME: updatepo.sh + PURPOSE: downloads POTs & PO files for specific language & release from Gnome status pages. + AUTHOR: Karunakar + EMAIL: kar...@in... + DATE: 30-09-2005 + LICENSE: GNU GPL |