SOURCES: rpm-find-lang - use if statement to increase readability
glen
glen at pld-linux.org
Fri Jan 12 21:23:54 CET 2007
Author: glen Date: Fri Jan 12 20:23:54 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use if statement to increase readability
---- Files affected:
SOURCES:
rpm-find-lang (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SOURCES/rpm-find-lang
diff -u SOURCES/rpm-find-lang:1.15 SOURCES/rpm-find-lang:1.16
--- SOURCES/rpm-find-lang:1.15 Wed Jan 3 02:50:21 2007
+++ SOURCES/rpm-find-lang Fri Jan 12 21:23:49 2007
@@ -147,7 +147,13 @@
s:^\([^%].*\)::
s:%lang(C) ::' | egrep -v '^$' >> $MO_NAME
-{ [ "$ALL_NAME" ] || cat __find.dirs && fgrep $NAME __find.dirs; } | sed '
+(
+ if [ "$ALL_NAME" ]; then
+ fgrep $NAME __find.dirs
+ else
+ cat __find.dirs
+ fi
+) | sed '
'"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\)::
'"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3:
'"$ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rpm-find-lang?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list