Mailinglist Archive: opensuse-gnome (84 mails)

< Previous Next >
Re: [opensuse-gnome] Interesting space saving trick for our packages...
On Tue, 2008-10-28 at 11:28 +1000, Magnus Boman wrote:

I was spying on Fedoras GDM package and came across something

# strip unneeded translations from .mo files
# ideally intltool (ha!) would do that for us
cd po
grep -v ".*[.]desktop[.]in.*\|.*[.]server[.]in[.]in$\|.*[.]schemas[.]in$" > POTFILES.keep
mv POTFILES.keep
intltool-update --pot
for p in *.po; do
msgmerge $p %{name}.pot > $p.out
msgfmt -o `basename $p .po`.gmo $p.out

Looks interesting indeed, but it needs to be done via an RPM macro or
not at all.


To unsubscribe, e-mail: opensuse-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages