File: postinst

package info (click to toggle)
wl 2.14.0-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,628 kB
  • ctags: 3,422
  • sloc: lisp: 48,172; sh: 282; makefile: 157
file content (18 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

if [ X"$1" = Xconfigure ]; then
  if [ -n "$2" ] && [ X"$2" != X"<unknown>" ]; then
    dpkg --compare-versions "$2" lt "2.7.4.20011005cvs" && \
    (
      for d in `find /usr/share/emacs/ -name "21.*"` `echo /usr/lib/xemacs-*`; do
	if [ -d $d/etc/wl ]; then
	  rm -rf $d/etc/wl
	  rmdir --ignore-fail-on-non-empty -p $d/etc
	fi
      done
    )
  fi
fi

#DEBHELPER#