preinst is in xmp-common 3.4.0-1ubuntu2.
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 | #!/bin/sh
# $Id: xmp-common.preinst,v 1.1 2007-10-20 10:58:37 robert Exp $
set -e
# move conf file from /etc to /etc/xmp
dir=/etc/xmp
for file in xmp.conf xmp-modules.conf ; do
[ -d $dir ] || mkdir -p $dir
[ -e $dir/$file ] || [ ! -e /etc/$file ] || mv /etc/$file $dir/$file
done
|