[fedora-java] db merging script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux