# If there's no mozilla here, then take over:
if [ ! -r usr/bin/mozilla ]; then
  ( cd usr/bin ; ln -sf seamonkey mozilla )
fi
# Hopefully this won't break everything.  ;-)
if ! grep /usr/lib/seamonkey etc/ld.so.conf 1> /dev/null 2> /dev/null ; then
  echo "/usr/lib/seamonkey" >> etc/ld.so.conf
fi
if [ -x /sbin/ldconfig ]; then
  /sbin/ldconfig 2> /dev/null
fi
( cd usr/include ; rm -rf seamonkey )
( cd usr/include ; ln -sf seamonkey-2.0.4 seamonkey )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jar-ds.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jar-ds.h jar-ds.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jri.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jri.h jri.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jni_md.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jni_md.h jni_md.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jni.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jni.h jni.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jritypes.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jritypes.h jritypes.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jri_md.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jri_md.h jri_md.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jarfile.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jarfile.h jarfile.h )
( cd usr/include/seamonkey-2.0.4/plugin ; rm -rf jar.h )
( cd usr/include/seamonkey-2.0.4/plugin ; ln -sf ../jar.h jar.h )
( cd usr/bin ; rm -rf seamonkey )
( cd usr/bin ; ln -sf /usr/lib/seamonkey-2.0.4/seamonkey seamonkey )
( cd usr/lib/pkgconfig ; rm -rf plugin.pc )
( cd usr/lib/pkgconfig ; ln -sf seamonkey-plugin.pc plugin.pc )
( cd usr/lib/pkgconfig ; rm -rf js.pc )
( cd usr/lib/pkgconfig ; ln -sf seamonkey-js.pc js.pc )
( cd usr/lib/pkgconfig ; rm -rf nss.pc )
( cd usr/lib/pkgconfig ; ln -sf seamonkey-nss.pc nss.pc )
( cd usr/lib/pkgconfig ; rm -rf xpcom.pc )
( cd usr/lib/pkgconfig ; ln -sf seamonkey-xpcom.pc xpcom.pc )
( cd usr/lib/pkgconfig ; rm -rf nspr.pc )
( cd usr/lib/pkgconfig ; ln -sf seamonkey-nspr.pc nspr.pc )
( cd usr/lib ; rm -rf seamonkey )
( cd usr/lib ; ln -sf seamonkey-2.0.4 seamonkey )
