Mac OS X installer scripts: made more flexible

git-svn-id: trunk@10182 -
This commit is contained in:
vincents 2006-11-09 21:36:18 +00:00
parent 95d60cc076
commit 45523c4fd1
3 changed files with 33 additions and 5 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -e
set -x
PPC_RELEASE=$1
@ -9,11 +10,23 @@ if [ ! -e "$PPC_RELEASE" ]; then
echo "Using default PPC_RELEASE: $PPC_RELEASE"
fi
FREEZE=/usr/bin/freeze
FPCSVNDIR=$2
if [ ! -d "$FPCSVNDIR" ]; then
FPCSVNDIR=~/src/fpcbuild/2.0.4
echo "Using default FPCSVNDIR: $FPCSVNDIR"
fi
FREEZE=/usr/local/bin/freeze
if [ ! -e "$FREEZE" ]; then
FREEZE=/usr/bin/freeze
fi
if [ ! -e "$FREEZE" ]; then
echo "Cannot find freeze"
fi
HDIUTIL=/usr/bin/hdiutil
UPDATELIST=~/tmp/updatelist
TEMPLATEDIR=`dirname $0`
FPCSVNDIR=~/src/fpc/build
FPCSOURCEDIR=$FPCSVNDIR/fpcsrc
BUILDDIR=~/tmp/build
FPCBUILDDIR=$BUILDDIR/fpc

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -e
set -x
FREEZE=/usr/bin/freeze
HDIUTIL=/usr/bin/hdiutil
UPDATELIST=~/tmp/updatelist
@ -25,9 +25,17 @@ if [ ! -e "$SVN" ]; then
echo "Cannot find a svn executable"
fi
FREEZE=/usr/local/bin/freeze
if [ ! -e "$FREEZE" ]; then
FREEZE=/usr/bin/freeze
fi
if [ ! -e "$FREEZE" ]; then
echo "Cannot find freeze"
fi
TEMPLATEDIR=`dirname $0`
FPCSVNDIR=~/src/fpc/build
FPCSVNDIR=~/src/fpcbuild/2.0.4
FPCSOURCEDIR=$FPCSVNDIR/fpcsrc
COMPILER=~/fpc/bin/$PPCARCH
INSTALLDIR=~/tmp/fpcsrc

View File

@ -3,7 +3,6 @@
set -e
set -x
FREEZE=/usr/bin/freeze
HDIUTIL=/usr/bin/hdiutil
UPDATELIST=~/tmp/updatelist
@ -26,6 +25,14 @@ if [ ! -e "$SVN" ]; then
echo "Cannot find a svn executable"
fi
FREEZE=/usr/local/bin/freeze
if [ ! -e "$FREEZE" ]; then
FREEZE=/usr/bin/freeze
fi
if [ ! -e "$FREEZE" ]; then
echo "Cannot find freeze"
fi
LAZSOURCEDIR=~/src/lazsource
COMPILER=~/fpc/bin/$PPCARCH