Last change
on this file since 4 was 1, checked in by Paul Smedley, 10 years ago |
Initial commit of Heimdal 1.5.3
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # $Id$
|
---|
3 |
|
---|
4 | dbase=`dirname $0`
|
---|
5 | base=`cd $dbase && pwd`
|
---|
6 | config=${base}/../../configure
|
---|
7 |
|
---|
8 | destdir=`pwd`/destdir
|
---|
9 | builddir=`pwd`/builddir
|
---|
10 | imgdir=`pwd`/imgdir
|
---|
11 |
|
---|
12 | rm -rf ${destdir} ${builddir} ${imgdir} || exit 1
|
---|
13 | mkdir ${destdir} || exit 1
|
---|
14 | mkdir ${builddir} || exit 1
|
---|
15 | mkdir ${imgdir} || exit 1
|
---|
16 |
|
---|
17 | cd ${builddir} || exit 1
|
---|
18 |
|
---|
19 | version=`sh ${config} --help 2>/dev/null | head -1 | sed 's/.*Heimdal \([^ ]*\).*/\1/'`
|
---|
20 |
|
---|
21 | echo "Building Mac universal binary package for Heimdal ${version}"
|
---|
22 | echo "Configure"
|
---|
23 | env \
|
---|
24 | CFLAGS="-arch i386 -arch x86_64" \
|
---|
25 | LDFLAGS="-arch i386 -arch x86_64" \
|
---|
26 | ${config} --disable-dependency-tracking > log || exit 1
|
---|
27 | echo "Build"
|
---|
28 | make all > /dev/null || exit 1
|
---|
29 | echo "Run regression suite"
|
---|
30 | make check > /dev/null || exit 1
|
---|
31 | echo "Install"
|
---|
32 | make install DESTDIR=${destdir} > /dev/null || exit 1
|
---|
33 |
|
---|
34 | echo "Build package"
|
---|
35 | xcrun productbuild \
|
---|
36 | --identifier org.h5l.heimdal \
|
---|
37 | --version ${version} \
|
---|
38 | --root ${destdir} / \
|
---|
39 | --resources ${base}/Resources \
|
---|
40 | --sign 'Developer ID Installer:' \
|
---|
41 | ${imgdir}/Heimdal-${version}.pkg
|
---|
42 |
|
---|
43 | cd ..
|
---|
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
|
---|
47 |
|
---|
48 | echo "Clean"
|
---|
49 | rm -rf ${destdir} ${builddir} ${imgdir} || exit 1
|
---|
50 |
|
---|
51 | echo "Done!"
|
---|
52 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.