Status: Accepted
begin
true ;
if [ [ arg 1; '='; 'install'; '-o'; arg 1; '='; 'upgrade'; ']' ]
then begin
if [ [ '!'; '-d'; '/var/lib/sgml-base'; ']' ]
then mkdir [ '/var/lib/sgml-base' ] fi ;
if [ [ '!'; '-d'; '/etc/sgml'; ']' ] then mkdir [ '/etc/sgml' ] fi
end
fi ;
exit success
end
#!/bin/sh
## ----------------------------------------------------------------------
## debian/preinst : preinstallation script for sgml-base
## ----------------------------------------------------------------------
## ----------------------------------------------------------------------
set -e
## ----------------------------------------------------------------------
if [ "$1" = "install" -o "$1" = "upgrade" ]
then
## ------------------------------------------------------------------
## create /var/lib/sgml-base
if [ ! -d /var/lib/sgml-base ]
then
mkdir /var/lib/sgml-base 2>/dev/null
fi
## ------------------------------------------------------------------
## create /etc/sgml
if [ ! -d /etc/sgml ]
then
mkdir /etc/sgml 2>/dev/null
fi
fi
## ----------------------------------------------------------------------
## automatically generated debhelper commands
exit 0
## ----------------------------------------------------------------------