This file is indexed.

postinst is in xemacs21-support 21.4.22-3.2ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/bin/sh -e
set -e

OLDDATADIR=/usr/lib/xemacs-21.4.22
NEWDATADIR=/usr/share/xemacs-21.4.22

test -d ${OLDDATADIR}/etc && rm -r ${OLDDATADIR}/etc
test -d ${OLDDATADIR}/lisp && rm -r ${OLDDATADIR}/lisp

test -L ${OLDDATADIR}/etc || ln -s ${NEWDATADIR}/etc ${OLDDATADIR}/etc
test -L ${OLDDATADIR}/lisp || ln -s ${NEWDATADIR}/lisp ${OLDDATADIR}/lisp

install-info --quiet --section "Emacs" "XEmacs21.4.22" /usr/share/info/xemacs21/xemacs.info

mkdir -p /usr/local/lib/xemacs/site-lisp > /dev/null 2>&1 || true

##