if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
( cd usr/lib/pd-extended/doc/media ; rm -rf noiseburst.wav )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/bsaylor/examples/noiseburst.wav noiseburst.wav )
( cd usr/lib/pd-extended/doc/media ; rm -rf voice2.wav )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../doc/sound/voice2.wav voice2.wav )
( cd usr/lib/pd-extended/doc/media ; rm -rf beauty.wav )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/ekext/examples/beauty.wav beauty.wav )
( cd usr/lib/pd-extended/doc/media ; rm -rf homer.avi )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/Gem/examples/data/homer.avi homer.avi )
( cd usr/lib/pd-extended/doc/media ; rm -rf stink.wav )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/ekext/examples/stink.wav stink.wav )
( cd usr/lib/pd-extended/doc/media ; rm -rf voice.wav )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../doc/sound/voice.wav voice.wav )
( cd usr/lib/pd-extended/doc/media ; rm -rf alea.mpg )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/Gem/examples/data/alea.mpg alea.mpg )
( cd usr/lib/pd-extended/doc/media ; rm -rf bell.aiff )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../doc/sound/bell.aiff bell.aiff )
( cd usr/lib/pd-extended/doc/media ; rm -rf anim-1.mov )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/Gem/examples/data/anim-1.mov anim-1.mov )
( cd usr/lib/pd-extended/doc/media ; rm -rf drummach.wav )
( cd usr/lib/pd-extended/doc/media ; ln -sf ../../extra/ekext/examples/drummach.wav drummach.wav )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf decode.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Decode.pd_linux decode.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf uzi.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Uzi.pd_linux uzi.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf trough.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Trough.pd_linux trough.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf snapshot~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Snapshot~.pd_linux snapshot~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf uzi-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Uzi-help.pd uzi-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf decode-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Decode-help.pd decode-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf mousestate-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf MouseState-help.pd mousestate-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf togedge-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf TogEdge-help.pd togedge-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf borax-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Borax-help.pd borax-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf snapshot~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Snapshot~-help.pd snapshot~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf clip-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Clip-help.pd clip-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf bucket.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Bucket.pd_linux bucket.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf scope~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Scope~.pd_linux scope~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf table-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Table-help.pd table-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf line~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Line~-help.pd line~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf clip~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Clip~.pd_linux clip~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf line~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Line~.pd_linux line~.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf togedge.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf TogEdge.pd_linux togedge.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf histo-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Histo-help.pd histo-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf table.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Table.pd_linux table.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf clip~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Clip~-help.pd clip~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf trough-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Trough-help.pd trough-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf bucket-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Bucket-help.pd bucket-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf scope~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Scope~-help.pd scope~-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf borax.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Borax.pd_linux borax.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf peak-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Peak-help.pd peak-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf mousestate.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf MouseState.pd_linux mousestate.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf histo.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Histo.pd_linux histo.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf append-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Append-help.pd append-help.pd )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf peak.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Peak.pd_linux peak.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf clip.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Clip.pd_linux clip.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; rm -rf append.pd_linux )
( cd usr/lib/pd-extended/extra/cyclone ; ln -sf Append.pd_linux append.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; rm -rf ..pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; ln -sf 0x2e.pd_linux ..pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; rm -rf >~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; ln -sf 0x3e0x7e.pd_linux >~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; rm -rf &&~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; ln -sf 0x260x260x7e.pd_linux &&~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; rm -rf ==~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; ln -sf 0x3d0x3d0x7e.pd_linux ==~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; rm -rf ||~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; ln -sf 0x7c0x7c0x7e.pd_linux ||~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; rm -rf <~.pd_linux )
( cd usr/lib/pd-extended/extra/zexy ; ln -sf 0x3c0x7e.pd_linux <~.pd_linux )
( cd usr/lib/pd-extended/startup ; rm -rf 0.libdir.pd_linux )
( cd usr/lib/pd-extended/startup ; ln -sf ../extra/libdir/libdir.pd_linux 0.libdir.pd_linux )
( cd usr/lib/pd-extended/startup ; rm -rf 1.list.pd_linux )
( cd usr/lib/pd-extended/startup ; ln -sf ../extra/vanilla/list.pd_linux 1.list.pd_linux )
( cd usr/lib/pd-extended/startup ; rm -rf pdlua )
( cd usr/lib/pd-extended/startup ; ln -sf ../extra/pdlua/ pdlua )
( cd usr/lib/pd-extended/startup ; rm -rf vanilla )
( cd usr/lib/pd-extended/startup ; ln -sf ../extra/vanilla/ vanilla )
( cd usr/lib/pd-extended/startup ; rm -rf extra )
( cd usr/lib/pd-extended/startup ; ln -sf ../extra/extra/ extra )
( cd usr/lib/pd-extended/startup ; rm -rf tclpd )
( cd usr/lib/pd-extended/startup ; ln -sf ../extra/tclpd/ tclpd )
