[Libreoffice] [PATCH] just find all .sdf files and do not use GNU find arguments

Robert Nagy robert at openbsd.org
Sat Nov 13 10:00:25 PST 2010


---
 bin/localize-ooo |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/localize-ooo b/bin/localize-ooo
index d253d6d..46ea56c 100755
--- a/bin/localize-ooo
+++ b/bin/localize-ooo
@@ -95,7 +95,7 @@ done
 # it looks for files "any-name-<lang>.sdf", e.g. "gallery-hu.sdf"
 # it ignores files below $ (upstream sources available when --with-git is used)
 hungarian_updated=
-for sdf_file in `find $TOOLSDIR/src $DEB_GSIDIR $TOOLSDIR/po $SRCDIR_PIECE -path $TOOLSDIR/src/clone -prune -o -name "*.sdf"` ; do
+for sdf_file in `find $TOOLSDIR/src $DEB_GSIDIR $TOOLSDIR/po $SRCDIR_PIECE -path $TOOLSDIR/src/clone -name "*.sdf"` ; do
 
     # check if it is lang-specific file
     echo "$sdf_file" | grep -q -f "$all_langs_pattern" || continue;
@@ -150,7 +150,7 @@ echo "Processing non language specific files:"
 # apply lang-non-specific sdf files
 # the files "any-name-<lang>.sdf" are ignored because they are already processed above
 # it ignores files below $TOOLSDIR/src/clone (upstream sources available when --with-git is used)
-for fn in `find $TOOLSDIR/src $DEB_GSIDIR $TOOLSDIR/po $SRCDIR_PIECE -path $TOOLSDIR/src/clone -prune -o -name "*.sdf"` ; do
+for fn in `find $TOOLSDIR/src $DEB_GSIDIR $TOOLSDIR/po $SRCDIR_PIECE -path $TOOLSDIR/src/clone -name "*.sdf"` ; do
     [ -f "$fn" ] || continue
     # skip if already processed as lang-specific files
     grep -q "^$fn$" $extra_trans_lang_list 2>/dev/null && continue;
-- 
1.7.3.1



More information about the LibreOffice mailing list