find-lang fixes

This commit is contained in:
Elliot Lee 2002-06-20 20:56:07 +00:00
parent 8c076a37c8
commit 3ee6bad5b9
3 changed files with 11 additions and 3 deletions

View File

@ -93,3 +93,9 @@ s:'"$TOP_DIR"'::
s:^\([^%].*\):: s:^\([^%].*\)::
s:%lang(C) :: s:%lang(C) ::
' >> $MO_NAME ' >> $MO_NAME
if ! grep -q / $MO_NAME; then
echo "No translations found for ${NAME} in ${TOP_DIR}"
exit 1
fi
exit 0

2
macros
View File

@ -127,3 +127,5 @@ export LANG\
LANG=C\ LANG=C\
export LANG\ export LANG\
%{nil} %{nil}
%find_lang /usr/lib/rpm/redhat/find-lang.sh %{buildroot}

View File

@ -1,7 +1,7 @@
Summary: Red Hat specific rpm configuration files. Summary: Red Hat specific rpm configuration files.
Name: redhat-rpm-config Name: redhat-rpm-config
Version: 7.3.91 Version: 7.3.92
Release: 2 Release: 1
License: GPL License: GPL
Group: Development/System Group: Development/System
Source: redhat-rpm-config-%{version}.tar.gz Source: redhat-rpm-config-%{version}.tar.gz
@ -27,7 +27,7 @@ rm -rf ${RPM_BUILD_ROOT}
%{_prefix}/lib/rpm/redhat %{_prefix}/lib/rpm/redhat
%changelog %changelog
* Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 7.3.91-2 * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 7.3.92-1
- find-lang error detection from Havoc - find-lang error detection from Havoc
* Wed Jun 12 2002 Elliot Lee <sopwith@redhat.com> 7.3.91-1 * Wed Jun 12 2002 Elliot Lee <sopwith@redhat.com> 7.3.91-1