[CVS] scripts/nikolai_playground/debian-installer export,1.1,1.2 import,1.1,1.2 log,1.1,NONE
Update of /cvsroot/l10n-russian/scripts/nikolai_playground/debian-installer
In directory quantz:/tmp/cvs-serv21638/nikolai_playground/debian-installer
Modified Files:
export import
Removed Files:
log
Log Message:
Обновление тестовых скриптов
--- log DELETED ---
Index: export
===================================================================
RCS file: /cvsroot/l10n-russian/scripts/nikolai_playground/debian-installer/export,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- export 29 Jan 2004 20:43:57 -0000 1.1
+++ export 13 Feb 2004 01:05:47 -0000 1.2
@@ -7,20 +7,52 @@
MODULE="debian-installer"
USERNAME="pronik-guest"
REPO_ROOT="cvs.alioth.debian.org:/cvsroot/d-i"
+DIR_NAME=$HEAD_DIR
+
+. ../config/cvs-checkout
+
+# Checkout the translations
+
+MODULE="debian-installer_testing"
+REPO_ROOT="cvs.alioth.debian.org:/cvsroot/l10n-russian"
+DIR_NAME=$TRANS_DIR
. ../config/cvs-checkout
-. ../config/prepare-logfile
# Look for templates and translations
TRANSLATIONS=`find -type f -name ru\.po`
TEMPLATES=`find -type f -name templates\.pot`
-for i in $TEMPLATES
- do
-# Check if there is a russian translation at place
- TRANS_NAME=`echo $i | sed 's/templates\.pot//'`ru.po
- echo $TRANS_NAME
- done
+if [ -e $FILE_HASH ]
+then
+ rm $FILE_HASH
+fi
+for i in $TEMPLATES
+do
+ # Set translation filename
+ PO_NAME=`echo $i | sed 's/templates\.pot/ru\.po/'`
+
+ # Set new name
+ NEW_NAME=`echo $i | sed 's/\/debian\/.*$//g' | sed 's/^.*\///g'`_ru.po;
+
+ # Output the name to the hash
+
+ echo "$NEW_NAME $PO_NAME" >> $FILE_HASH
+
+ # Syncronize templates
+
+ if [ ! -d $TRANS_DIR ]
+ then
+ mkdir $TRANS_DIR
+ fi
+
+ if [ -e $TRANS_DIR/$NEW_NAME ]
+ then
+ msgmerge -q --backup=off --update $TRANS_DIR/$NEW_NAME $i
+ else
+ cp $i $TRANS_DIR/$NEW_NAME
+ fi
+done
Index: import
===================================================================
RCS file: /cvsroot/l10n-russian/scripts/nikolai_playground/debian-installer/import,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- import 29 Jan 2004 20:43:57 -0000 1.1
+++ import 13 Feb 2004 01:05:47 -0000 1.2
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+. ../config/common-options
+
+cd $TRANS_DIR
+
+for i in *.po
+do
+ TARGET=`grep "^$i" ../filehash | cut -f 2`
+ cp $i ../$TARGET
+done
+
+echo "Please commit manually, I'm afraid!"
\ No newline at end of file
Reply to:
- Prev by Date:
[CVS] scripts/nikolai_playground/config common-options,1.1,1.2 cvs-checkout,1.1,1.2 prepare-logfile,1.1,NONE
- Next by Date:
[CVS] debian-installer debian-installer_partman_partman-basicfilesystems_ru.po,1.8,1.9
- Previous by thread:
[CVS] scripts/nikolai_playground/config common-options,1.1,1.2 cvs-checkout,1.1,1.2 prepare-logfile,1.1,NONE
- Next by thread:
[CVS] debian-installer debian-installer_partman_partman-basicfilesystems_ru.po,1.8,1.9
- Index(es):