$NetBSD: patch-aa,v 1.1.1.1 2002/08/04 16:52:45 jdolecek Exp $ --- install.sh.orig Mon Jul 8 20:13:11 2002 +++ install.sh Sun Aug 4 13:54:04 2002 @@ -1,33 +1,33 @@ -#!/bin/sh +#!/bin/sh -x -if [ ! -f ./psi ]; then +if [ ! -f src/psi ]; then echo "The program 'psi' doesn't exist. Perhaps this is a source package and you have not yet compiled the program? Go read the INSTALL file." exit 1 fi -export PSIDIR=/usr/local/psi +PSIDIR=$PREFIX/psi echo [Installing Psi] mkdir -p $PSIDIR -echo Copying program files to /usr/local/psi +echo Copying program files to $PSIDIR cp -r ./image $PSIDIR cp -r ./iconsets $PSIDIR cp -r ./sound $PSIDIR cp -r ./certs $PSIDIR -cp ./psi $PSIDIR +cp src/psi $PSIDIR cp ./README $PSIDIR cp ./COPYING $PSIDIR -mkdir -p /usr/local/bin -if [ -e /usr/local/bin/psi ]; then - rm /usr/local/bin/psi +mkdir -p $PREFIX/bin +if [ -e $PREFIX/bin/psi ]; then + rm $PREFIX/bin/psi fi -echo Putting a link in /usr/local/bin -ln -s $PSIDIR/psi /usr/local/bin/psi +echo Putting a link in $PREFIX/bin +ln -s $PSIDIR/psi $PREFIX/bin/psi echo [Finished]