#!/bin/sh
set -e
if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
	update-desktop-database -q
fi
command -v upxfromgit
if [ "$?" = "0" ] ; then
upxfromgit /usr/bin/lazarus /usr/bin/startlazarus /usr/bin/lazbuild
sstrip /usr/bin/lazarus /usr/bin/startlazarus /usr/bin/lazbuild 
fi
