gcc34: post-install and post-remove fix path for checking for Pkgfile

This commit is contained in:
Danny Rawlins 2008-05-09 11:54:36 +10:00
parent 3f4363aac6
commit 6c782d2042
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh
if [ -e Pkgfile ]; then
. Pkgfile
if [ -e '/usr/ports/contrib/gcc34/Pkgfile' ]; then
. /usr/ports/contrib/gcc34/Pkgfile
else
echo 'post-install: error Pkgfile is missing.'
exit 1

View File

@ -1,8 +1,8 @@
#!/usr/bin/env sh
if [ -e Pkgfile ]; then
. Pkgfile
if [ -e '/usr/ports/contrib/gcc34/Pkgfile' ]; then
. /usr/ports/contrib/gcc34/Pkgfile
else
echo 'post-remove: error Pkgfile is missing.'
echo 'post-install: error Pkgfile is missing.'
exit 1
fi
SUFFIX="-${version%.*}"