Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /osx-dist/build-pkg.sh
ViewVC logotype

Diff of /osx-dist/build-pkg.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3844, Fri Jul 12 21:53:49 2013 UTC revision 3845, Fri Jul 12 22:54:36 2013 UTC
# Line 3  Line 3 
3  # Script to build the installer package for x86 on Mac OS X (10.7+)  # Script to build the installer package for x86 on Mac OS X (10.7+)
4  #  #
5    
6  # FIXME: check for VERSION argument!!!  # get the version number
7    #
8    if [ $# != 1 ] ; then
9      echo "usage: build-pkg.sh version"
10      exit 1
11    fi
12  VERSION=$1  VERSION=$1
13    
14  CONFIGURL=http://smlnj.cs.uchicago.edu/dist/working/$VERSION/config.tgz  CONFIGURL=http://smlnj.cs.uchicago.edu/dist/working/$VERSION/config.tgz
15  DISTROOT=smlnj.dst  DISTROOT=smlnj.dst
16  ID=org.smlnj.x86  ID=org.smlnj.x86.pkg
17  ROOT=$(pwd)  ROOT=$(pwd)
18    
19  # you need a developer ID to sign the final package  # you need a developer ID to sign the final package
20  #  #
21  SIGN="Developer ID Installer: John Reppy"  SIGN="Developer ID Installer: John Reppy"
22    
23  if [ -d $ROOT ] ; then  if [ -d $DISTROOT ] ; then
24    echo "please remove $ROOT first"    echo "please remove $DISTROOT first"
25    exit 1    exit 1
26  fi  fi
27  mkdir $ROOT  mkdir $DISTROOT
28  cd $ROOT  cd $DISTROOT
29    
30  # first we need to download and unbundle the config directory for the release  # first we need to download and unbundle the config directory for the release
31  #  #
# Line 57  Line 63 
63    
64  # build package  # build package
65  #  #
66  pkgbuild --identifier $ID --scripts components/scripts/ --install-location /usr/local/smlnj --root $DISTROOT smlnj.pkg  pkgbuild --identifier $ID --scripts components/scripts/ --install-location /usr/local/Xsmlnj --root $DISTROOT smlnj.pkg
67    
68  # build distribution package  # build distribution package
69  #  #
70  productbuild --sign "$SIGN" --distribution distribution.xml --package-path . ./smlnj-x86-$VERSION.pkg  productbuild --sign "$SIGN" --distribution ./distribution.xml --package-path components ./smlnj-x86-$VERSION.pkg
71    
72  # cleanup  # cleanup
73  #  #
74  #rm distribution.xml  #rm -rf distribution.xml $DISTROOT smlnj.pkg

Legend:
Removed from v.3844  
changed lines
  Added in v.3845

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0