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
30 CODE_SIGN_IDENTITY
="Developer ID Application:" \
31 make all
> /dev
/null ||
exit 1
33 echo "Run regression suite"
34 make check
> /dev
/null ||
exit 1
36 make install DESTDIR
=${destdir} > /dev
/null ||
exit 1
40 --identifier org.h5l.heimdal \
41 --version ${version} \
43 --resources ${base}/Resources \
44 --sign 'Developer ID Installer:' \
45 ${imgdir}/Heimdal-
${version}.pkg
48 echo "Build disk image"
49 rm "heimdal-${version}.dmg"
50 /usr
/bin
/hdiutil create
-volname "Heimdal-${version}" -srcfolder ${imgdir} "heimdal-${version}.dmg" ||
exit 1
53 rm -rf ${destdir} ${builddir} ${imgdir} ||
exit 1