#/bin/bash

#Package using the Package Maker from OSX, driven by command line.
sudo sh -c "rm -rf ISSM-MacOSX.pkg bin test"

#We need to copy all the relevant files and set the permissions, as PackageMaker 
#is not good at that. 
cp -Rf $ISSM_TIER/bin ./
cp -Rf $ISSM_TIER/test ./
cp matlabissm startup.m ./bin

#Now change group and ownership: 
sudo sh -c "chown -R root ./bin && chgrp -R admin ./bin"
sudo sh -c "chown -R root ./test && chgrp -R admin ./test"

#Run PackageMaker now, using the ISSM.pmdoc project
