#! /bin/sh -e # preinst script for libjmf-java6-java DEST_DIR_I386="/usr/lib/jvm/java-6-sun/jre/lib/i386" DEST_DIR_EXT="/usr/lib/jvm/java-6-sun/jre/lib/ext" JAR_FILES="jmf.jar mediaplayer.jar multiplayer.jar " SO_FILES="libjmcvid.so libjmmpa.so libjmmpx.so libjmfjawt.so libjmv4l.so libjmmpegv.so libjmutil.so libjmg723.so libjmh261.so libjmdaud.so libjmxlib.so libjmjpeg.so libjmgsm.so libjmh263enc.so " case "$1" in upgrade) if dpkg --compare-versions "$2" lt 2.1.1e-lliurex5; then for f in ${JAR_FILES} ; do [ -L "$DEST_DIR_EXT/$f" ] && rm -f "$DEST_DIR_EXT/$f" done for f in ${SO_FILES} ; do [ -L "$DEST_DIR_I386/$f" ] && rm -f "$DEST_DIR_I386/$f" done fi ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0