preinst is in liquidwar 5.6.4-3ubuntu1.
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
#test -h /usr/share/doc/liquidwar && rm /usr/share/doc/liquidwar || true
# Whatever we had before, move all the cruft to the new directory and make
# space for the symlink
set -e
if [ ! -h /usr/share/doc/liquidwar ] ; then
test -d /usr/share/doc/liquidwar-data || mkdir -p /usr/share/doc/liquidwar-data
if [ "`echo /usr/share/doc/liquidwar/*`" != "/usr/share/doc/liquidwar/*" ] ; then
mv -f /usr/share/doc/liquidwar/* /usr/share/doc/liquidwar-data/
fi
fi
rm -rf /usr/share/doc/liquidwar
|