diff --git a/packages/mac/mac.sh b/packages/mac/mac.sh index ce2783ddb..539a68b06 100644 --- a/packages/mac/mac.sh +++ b/packages/mac/mac.sh @@ -3,7 +3,6 @@ dbase=`dirname $0` base=`cd $dbase && pwd` -echo $base config=${base}/../../configure destdir=`pwd`/destdir @@ -19,18 +18,24 @@ cd ${builddir} || exit 1 version=`sh ${config} --help 2>/dev/null | head -1 | sed 's/.*Heimdal \([^ ]*\).*/\1/'` +echo "Building Mac universal binary package for Heimdal ${version}" +echo "Configure" env \ CFLAGS="-arch i386 -arch ppc" \ LDFLAGS="-arch i386 -arch ppc" \ ${config} > log || exit 1 +echo "Build" make all > /dev/null || exit 1 +echo "Run regression suite" make check > /dev/null || exit 1 +echo "Install" make install DESTDIR=${destdir} > /dev/null || exit 1 replace="s,[@]VERSION[@],${version},g" sed -e $replace < ${base}/Info.plist.in > ./Info.plist +echo "Build package" /Developer/Tools/packagemaker \ -build \ -ds \ @@ -40,8 +45,11 @@ sed -e $replace < ${base}/Info.plist.in > ./Info.plist -i ./Info.plist || exit 1 cd .. +echo "Build disk image" /usr/bin/hdiutil create -volname "Heimdal-${version}" -srcfolder ${imgdir} "heimdal-${version}.dmg" || exit 1 +echo "Clean" rm -rf ${destdir} ${builddir} ${imgdir} || exit 1 +echo "Done!" exit 0