#! /bin/bash
# ----------------------------------------------------------------------------
# /tmp/preinstall.sh - libpcre-dev preinstallation
#
# Creation   : 2010-09-17 alex
# Last update: $Id$
#
# Copyright (c) 2010 the eisfair team, team(at)eisfair(dot)org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# ----------------------------------------------------------------------------

# set packages name
packageName=libpcre-dev

#----------------------------------------------------------------------------
# delete old scripts
#----------------------------------------------------------------------------
deinstall_file=/var/install/deinstall/${packageName}

if [ -f "${deinstall_file}" ]
then
    chmod 0700 ${deinstall_file}
    ${deinstall_file}
fi

old_package=libpcre5-0

if [ -f /var/install/packages/${old_package}-dev ]
then
    deinstall_file=/var/install/deinstall/${old_package}-dev
    chmod 0700 ${deinstall_file}
    ${deinstall_file}
fi

exit 0
#----------------------------------------------------------------------------
# end
#----------------------------------------------------------------------------
