#!/bin/sh
#
# this is a short configure script to set up makefiles to install
# gtray
PREFIX="/usr/local"
if [ "$1" != "" ]; then
PREFIX=$1
fi
# gtray script
cat > gtray << END
#!/bin/sh
cd $PREFIX/lib/gtray
exec ./gtray > /dev/null 2>&1
END
chmod +x gtray
# makefile
cat > Makefile << END
install:
mkdir -p $PREFIX/lib/gtray
cp src/* $PREFIX/lib/gtray
cp gtray $PREFIX/bin
END
echo "Configured to install in $PREFIX"
echo "Use $0 <prefix> to specify a different prefix"
syntax highlighted by Code2HTML, v. 0.9.1