File: compile

package info (click to toggle)
jed 1%3A0.99.19-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,368 kB
  • ctags: 5,809
  • sloc: ansic: 48,117; sh: 2,977; makefile: 518
file content (25 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -e

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

case "$1" in
  install|remove)
        # Remove the files in both cases, because some .sl files may have
        # gone and some .slc files may not work with the new jed version
	find $LIBDIR \( -name \*.slc -o -name \*.dfa \) -print0 \
        | xargs -0 --no-run-if-empty rm

        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