preinst is in viewmol 2.4.1-24.
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 -e
# rename locale/en_US to en (from 2.4.1-12)
if [ "$1" = "upgrade" ]; then
if dpkg --compare-versions "$2" lt-nl 2.4.1-12; then
if [ -d /etc/viewmol/locale/en_US/ ] && [ ! -d /etc/viewmol/locale/en/ ]; then
echo "Moving /etc/viewmol/locale/en_US/ to .../en"
mv /etc/viewmol/locale/en_US /etc/viewmol/locale/en
fi
fi
fi
|