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 3847, Sat Jul 13 11:41:57 2013 UTC revision 3848, Sun Jul 14 03:10:26 2013 UTC
# Line 15  Line 15 
15  DISTROOT=smlnj.dst  DISTROOT=smlnj.dst
16  ID=org.smlnj.x86.pkg  ID=org.smlnj.x86.pkg
17  ROOT=$(pwd)  ROOT=$(pwd)
18    RSRC=Resources
19    
20  # you need a developer ID to sign the final package  # you need a developer ID to sign the final package
21  #  #
# Line 57  Line 58 
58  #  #
59  cd $ROOT  cd $ROOT
60    
61  # patch distribution file for version  # create the resources directory and fill it
62  #  #
63  sed -e "s/VERSION/$VERSION/g" components/distribution_xml.in > distribution.xml  if [ -d $RSRC ] ; then
64      rm -rf $RSRC
65    fi
66    mkdir $RSRC
67    sed -e "s/VERSION/$VERSION/g" components/distribution_xml.in > $RSRC/distribution.xml
68    cp -p components/smlnj-background.jpg $RSRC/background.jpg
69    #cp -p components/welcome.html $RSC/welcome.html
70    cp -p $DISTROOT/$VERSION-README.html $RSRC/readme.html
71    cp -p components/license.html $RSRC/license.html
72    cp -p components/conclusion.html $RSRC/conclusion.html
73    
74  # build package  # build package
75  #  #
# Line 67  Line 77 
77    
78  # build distribution package  # build distribution package
79  #  #
80  productbuild --sign "$SIGN" --distribution ./distribution.xml --package-path components ./smlnj-x86-$VERSION.pkg  productbuild --sign "$SIGN" --package-path components --resources $RSRC \
81        --distribution $RSRC/distribution.xml ./smlnj-x86-$VERSION.pkg
82    
83  # cleanup  # cleanup
84  #  #
85  #rm -rf distribution.xml $DISTROOT smlnj.pkg  #rm -rf $RSRC $DISTROOT smlnj.pkg

Legend:
Removed from v.3847  
changed lines
  Added in v.3848

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