#!/bin/sh

gimpDir=`which gimp`

if [ "$gimpDir" = "" ]
then
   echo "Sorry can't correct Makefile"
   exit 1
fi
gimpDir=`dirname $gimpDir`
gimpDir=`dirname $gimpDir`

if [ `uname` = SunOS ]
then
   sed "s@/usr/local@$gimpDir@g" Makefile.Solaris > Makefile
else
   sed "s@/usr/local@$gimpDir@g" Makefile.Linux > Makefile
fi
sleep 2
touch Makefile.in
