[ooo-build-commit] .: bin/localize-ooo

Petr Mladek pmladek at kemper.freedesktop.org
Fri May 21 11:32:54 PDT 2010


 bin/localize-ooo |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 6d542b3cb017e9fa024c37b20f7fbae5ed782f71
Author: Petr Mladek <pmladek at suse.cz>
Date:   Fri May 21 20:29:02 2010 +0200

    Clean up $SRCDIR/clone paths handling in bin/localize-ooo
    
    * bin/localize-ooo: use $OOBUILDDIR/l10n instead of $SRCDIR/clone/l10n/l10n
      to make it working without git; remove obsolete hacks for ignoring particular
      .sdf files; the whole $SRCDIR/clone is ignored now

diff --git a/bin/localize-ooo b/bin/localize-ooo
index 6232092..700be0b 100755
--- a/bin/localize-ooo
+++ b/bin/localize-ooo
@@ -137,7 +137,7 @@ done
 sdf_langpack=`mktemp /tmp/langpack-ooo-sdf-XXXXXX`
 echo -n "Generating langpack description from translation: "
 echo -n "" > langpack.sdf
-for sdf_file in `find $SRCDIR/clone/l10n/l10n/source -name "*.sdf" | sort` ; do
+for sdf_file in `find $OOBUILDDIR/l10n/source -name "*.sdf" | sort` ; do
     echo -n "."
     grep -E "STR_...._MODULE_LANGPACK_" $sdf_file >> $sdf_langpack
 done
@@ -161,11 +161,6 @@ for fn in `find $SRCDIR $DEB_GSIDIR $TOOLSDIR/po $SRCDIR_PIECE -path $SRCDIR/clo
     # skip sdf-templates
     echo "$fn" | grep -q "^$TOOLSDIR/po/sdf-templates" && continue;
     echo "$fn" | grep -q "^$TOOLSDIR/po/ooo-build.sdf" && continue;
-	# skip transex3/workbench files, they are not real sdf files
-	echo "$fn" | grep -q "^$SRCDIR/clone/libs-gui/transex3/workbench/" && continue;
-	echo "$fn" | grep -q "^$SRCDIR/clone/libs-gui/transex3/layout/" && continue;
-	# skip cloned files
-	echo "$fn" | grep -q "^$SRCDIR/clone/l10n/l10n/source/" && continue;
     # skip exotic localizations that are not in $ALL_LANGS and thus not detected
     echo "$fn" | grep -q "$SRCDIR/GSI" && ! echo $OOO_LANGS | grep -q "$(echo $(basename $fn) | cut -d'_' -f2)" && continue;
     echo "$fn" | grep -q "$TOOLSDIR/po/ooo-build" && ! echo $OOO_LANGS | grep -q "$(echo $(basename $fn) | cut -d'-' -f3)" && continue;


More information about the ooo-build-commit mailing list