File: compile

package info (click to toggle)
jed 0.99.18-8.etch.4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,608 kB
  • ctags: 5,106
  • sloc: ansic: 39,429; sh: 3,426; makefile: 350
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

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

case "$1" in
  install)
	jed-script $PREPARSE || true
        # don't worry if jed-script is missing, because jed runs this scipt
        # again at installation
	;;
  remove)
	find $LIBDIR \( -name \*.slc -o -name \*.dfa \) -print0 \
        | xargs -0 --no-run-if-empty rm
	;;
  *)
	echo "unknown argument --> \"$1"\" >&2
	exit 1
	;;
esac