[CVS] scripts/nikolai_playground/config commit-changes,NONE,1.1 synchronise-normal,NONE,1.1 synchronise-with-names,NONE,1.1 cvs-checkout,1.2,1.3
Update of /cvsroot/l10n-russian/scripts/nikolai_playground/config
In directory haydn:/tmp/cvs-serv13162/config
Modified Files:
cvs-checkout
Added Files:
commit-changes synchronise-normal synchronise-with-names
Log Message:
update the sync scripts
--- NEW FILE: synchronise-with-names ---
# Synchronises "normal" packages, i.e. the ones with two templates at most - one for the application,
# one for the package.
# Look for templates and translations
TRANSLATIONS=`find -type f -name ru\.po`
TEMPLATES=`find -type f -iregex .*\.pot$`
if [ -e $FILE_HASH ]
then
rm $FILE_HASH
fi
echo "Synchronising the templates..."
for i in $TEMPLATES
do
# Set translation filename
PO_NAME=`dirname $i`/ru.po
# Set new name
NEW_NAME=$MODULE-`basename $i .pot`_ru.po
# Output the name to the hash
echo "$NEW_NAME $PO_NAME" >> $FILE_HASH
# Synchronize templates
if [ ! -d $TRANS_DIR ]
then
mkdir $TRANS_DIR
fi
echo "Updating $NEW_NAME..."
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
--- NEW FILE: commit-changes ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: synchronise-normal ---
# Synchronises "normal" packages, i.e. the ones with two templates at most - one for the application,
# one for the package.
# Look for templates and translations
TRANSLATIONS=`find -type f -name ru\.po`
TEMPLATES=`find -type f -iregex .*\.pot$`
if [ -e $FILE_HASH ]
then
rm $FILE_HASH
fi
echo "Synchronising the templates..."
for i in $TEMPLATES
do
# Set translation filename
PO_NAME=`dirname $i`/ru.po
# Set new name
NEW_NAME=$MODULE
if [ "$PO_NAME" != "`echo $PO_NAME | sed 's/\/debian\/po//g'`" ]
then
NEW_NAME=$NEW_NAME-debconf
fi
NEW_NAME=$NEW_NAME"_ru.po"
# Output the name to the hash
echo "$NEW_NAME $PO_NAME" >> $FILE_HASH
# Synchronize templates
if [ ! -d $TRANS_DIR ]
then
mkdir $TRANS_DIR
fi
echo "Updating $NEW_NAME..."
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: cvs-checkout
===================================================================
RCS file: /cvsroot/l10n-russian/scripts/nikolai_playground/config/cvs-checkout,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cvs-checkout 13 Feb 2004 01:05:47 -0000 1.2
+++ cvs-checkout 18 Jun 2004 22:53:41 -0000 1.3
@@ -1,8 +1,15 @@
# Directory must exist, if not -- new checkout
+if [ "$SSH" = "Yes" ]
+then
+ MODE="ext"
+else
+ MODE="pserver"
+fi
+
if [ ! -d $DIR_NAME ]
then
- cvs $CVS_OPTIONS -d :ext:$USERNAME@$REPO_ROOT co -d$DIR_NAME $MODULE
+ cvs $CVS_OPTIONS -d :$MODE:$USERNAME@$REPO_ROOT co -d$DIR_NAME $MODULE
fi
cd $DIR_NAME
Reply to:
- Prev by Date:
[CVS] scripts/nikolai_playground/console-common export,NONE,1.1 import,NONE,1.1
- Next by Date:
[CVS] debian-installer partman-md_ru.po,1.13,1.14
- Previous by thread:
[CVS] scripts/nikolai_playground/console-common export,NONE,1.1 import,NONE,1.1
- Next by thread:
[CVS] debian-installer partman-md_ru.po,1.13,1.14
- Index(es):