1 # number of builds to retain
5 echo "--- Building nightly Mac OS X hoomd package on `date`"
7 # get up to the root of the tree
11 # update to the latest rev
13 git checkout
${BRANCH}
16 new_rev
=`git describe`
18 # up another level out of the source repository
21 #check the previous version built
22 atrev
=`cat mac_old_revision || echo 0`
23 echo "Last revision built was $atrev"
24 echo "Current repository revision is $new_rev"
26 if [ "$atrev" = "$new_rev" ];then
29 echo $new_rev > mac_old_revision
31 # build the new package
36 cmake
-DENABLE_MPI=OFF
-DENABLE_DOXYGEN=OFF
-DENABLE_APP_BUNDLE_INSTALL=ON
-DBOOST_ROOT=/opt
/boost-1.52
.0/ -DBoost_NO_SYSTEM_PATHS=ON
-DPYTHON_EXECUTABLE=/usr
/bin
/python ..
/code
39 destination
="daily/incoming/mac"
40 rsync
-ue /usr
/bin
/ssh hoomd-
*.dmg joaander@petry.engin.umich.edu
:$destination/
43 rpmfiles
=( `ls -td hoomd-*.dmg` )
44 numfiles
=${#rpmfiles[*]}
45 for (( i
=$
(( $NRPMS )); $i < $numfiles ; i
++ )); do