postinst is in z88dk 1.8.ds1-10.
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 | #!/bin/sh -e
set -e
. /usr/share/debconf/confmodule
db_version 2.0 || true
db_get z88dk/configure-defaultpackage || true
pack=$RET
if [ -e /usr/share/z88dk/lib/config/$pack.cfg ]; then
rm -f /usr/share/z88dk/lib/config/zcc.cfg;
ln -s /usr/share/z88dk/lib/config/$pack.cfg /usr/share/z88dk/lib/config/zcc.cfg
fi
|