#!/bin/sh -e

LIBDIR=/usr/share/jed/lib
PREPARSE=$LIBDIR/preparse.sl

case "$1" in
  install|remove)
        case "$1" in
          install)
		jed-script $PREPARSE || true
		# don't worry if jed-script is missing, because jed runs this
		# script again at installation
                ;;
        esac
	;;
  *)
	echo "unknown argument --> \"$1"\" >&2
	exit 1
	;;
esac
