5 base
=`cd $dbase && pwd`
6 config
=${base}/..
/..
/configure
9 builddir
=`pwd`/builddir
12 rm -rf ${destdir} ${builddir} ${imgdir} ||
exit 1
13 mkdir
${destdir} ||
exit 1
14 mkdir
${builddir} ||
exit 1
15 mkdir
${imgdir} ||
exit 1
17 cd ${builddir} ||
exit 1
19 version
=`sh ${config} --help 2>/dev/null | head -1 | sed 's/.*Heimdal \([^ ]*\).*/\1/'`
21 echo "Building Mac universal binary package for Heimdal ${version}"
24 CFLAGS
="-arch i386 -arch x86_64" \
25 LDFLAGS
="-arch i386 -arch x86_64" \
26 ${config} --disable-dependency-tracking > log ||
exit 1
28 make all
> /dev
/null ||
exit 1
29 echo "Run regression suite"
30 make check
> /dev
/null ||
exit 1
32 make install DESTDIR
=${destdir} > /dev
/null ||
exit 1
36 --identifier org.h5l.heimdal \
37 --version ${version} \
39 --resources ${base}/Resources \
40 --sign 'Developer ID Installer:' \
41 ${imgdir}/Heimdal-
${version}.pkg
44 echo "Build disk image"
45 rm "heimdal-${version}.dmg"
46 /usr
/bin
/hdiutil create
-volname "Heimdal-${version}" -srcfolder ${imgdir} "heimdal-${version}.dmg" ||
exit 1
49 rm -rf ${destdir} ${builddir} ${imgdir} ||
exit 1