X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm-find-lang;h=9a5f6cd69dc8b16d205620330084a15e07c118c2;hb=62d388eb2053ed7d037127e82d85971bb34e3494;hp=d08a0e63f5f7bcef02b783d705f71eb619a36fb8;hpb=4c481348f3e0e9c3b0681033803391f577b4bd01;p=packages%2Frpm.git diff --git a/rpm-find-lang b/rpm-find-lang index d08a0e6..9a5f6cd 100644 --- a/rpm-find-lang +++ b/rpm-find-lang @@ -113,7 +113,7 @@ done echo '%defattr(644,root,root,755)' > $MO_NAME -if [ ! -f __find.files ]; then +if [ ! -f __find.files ] || [ "$TOP_DIR" -nt __find.files ]; then find $TOP_DIR -type f -name '*.mo' | xargs -r file | egrep -v ', 1 messages$' | \ sed -e ' s/:.*// @@ -135,7 +135,7 @@ s:^\([^%].*\):: s:%lang(C) :: s:^\$::' | egrep -v '^$' >> $MO_NAME -if [ ! -f __find.dirs ]; then +if [ ! -f __find.dirs ] || [ "$TOP_DIR" -nt __find.dirs ]; then find $TOP_DIR -type d | sed 's:'"$TOP_DIR"'::' > __find.dirs else echo "$PROG: Using cached __find.dirs"