[fedora-java] db merging script
Andrew Overholt
overholt at redhat.com
Tue Mar 22 17:13:50 UTC 2005
This is a crude example of what we could have, but it's what I've got so
far:
%post -n %{libname}-gtk2
if ![ -e `gcj-dbtool -p` ]; then
dirname `gcj-dbtool -p` | xargs mkdir -p;
gcj-dbtool -n `gcj-dbtool -p`;
fi
if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then
gcj-dbtool -m `gcj-dbtool -p` `find %{_libdir}/%{name}/mappings -name \*.db` `gcj-dbtool -p`
fi
%postun %{libname}-gtk2
if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then
gcj-dbtool -m `gcj-dbtool -p` `find %{_libdir}/%{name}/mappings -name \*.db` `gcj-dbtool -p`
fi
I'm not even sure if what I have will work. I'd just like to start the
discussion about how best to do it. Anthony Green has raised valid concerns
about multilib systems.
Andrew
More information about the fedora-devel-java-list
mailing list