OBS User unknown 2007-05-11 08:36:00 +00:00 committed by Git OBS Bridge
parent a3ac914367
commit b28164d016
3 changed files with 15 additions and 3 deletions

View File

@ -93,6 +93,7 @@ if [ "$CREATE" = "yes" ]; then
mkdir -p $RPM_BUILD_ROOT/usr/share/applications/
cat > $RPM_SOURCE_DIR/$APPLICATION.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=$NAME
GenericName=$GNAME
Type=Application
@ -319,9 +320,9 @@ if [ "$I18N" = "yes" ]; then
perl /usr/share/update-desktop-files/translate.pl $L $FILE > ${FILE}_ && mv ${FILE}_ $FILE || exit 1
done
perl /usr/share/update-desktop-files/untranslate.pl $FILE > ${FILE}.new
if ! cmp -s ${FILE}.old {FILE}.new; then
if ! cmp -s ${FILE}.old ${FILE}.new; then
echo "UNTRANSLATE DOES NOT WORK"
diff -u ${FILE}.old {FILE}.new
diff -u ${FILE}.old ${FILE}.new
fi
rm -f ${FILE}.old ${FILE}.new
else

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 7 14:00:51 CEST 2007 - coolo@suse.de
- add Encoding=UTF-8 to generated .desktop files to keep (older)
desktop-file-validate happy
- fix script error
-------------------------------------------------------------------
Wed May 2 19:18:34 CEST 2007 - coolo@suse.de

View File

@ -12,7 +12,7 @@
Name: update-desktop-files
Version: 10.3
Release: 14
Release: 17
Summary: A Build Tool to Update Desktop Files
License: GNU General Public License (GPL)
Group: Development/Tools/Building
@ -123,6 +123,10 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/locale/*/LC_MESSAGES/*mo
%changelog
* Mon May 07 2007 - coolo@suse.de
- add Encoding=UTF-8 to generated .desktop files to keep (older)
desktop-file-validate happy
- fix script error
* Wed May 02 2007 - coolo@suse.de
- add support for untranslate (so we can grab upstream translations
reliable)