diff options
-rw-r--r-- | build/po_functions | 4 | ||||
-rwxr-xr-x | scripts/create_xml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build/po_functions b/build/po_functions index c6b6ea2a3..7b6bea3dc 100644 --- a/build/po_functions +++ b/build/po_functions @@ -11,7 +11,7 @@ update_templates () { # Check whether language uses PO files for translation uses_po () { if [ -d "../po/$lang" ] ; then - if [ -d "../$lang/.svn" ] ; then + if [ -d "../$lang/" ] && svn info "../$lang" >/dev/null 2>&1 ; then echo "Warning: both PO files and XML files are present; ignoring PO files" else return 0 @@ -33,7 +33,7 @@ generate_xml () { clear_xml () { for lang in $languages; do - if [ -d ../po/$lang ] && [ ! -d ../$lang/.svn ]; then + if [ -d ../po/$lang ] && [ ! -d ../$lang/ ] && ! svn info ../$lang/ >/dev/null 2>&1 ; then rm -rf ../$lang fi done diff --git a/scripts/create_xml b/scripts/create_xml index 7ed3ca1eb..656ca1444 100755 --- a/scripts/create_xml +++ b/scripts/create_xml @@ -20,7 +20,7 @@ else fi SOURCEDIR="$WORKDIR/en" # Don't overwrite XML translations committed to SVN -if [ -d "./$language/.svn" ] ; then +if svn info "./$language/" >/dev/null 2>&1; then TARGETDIR="./$language.new" else TARGETDIR="./$language" |