echo "--- Building nightly Mac OS X hoomd package on `date`"

# get up to the root of the tree
cd ..
cd ..

# update to the latest rev
svn update

new_rev=`svnversion .`

# up another level out of the source repository
cd ..

#check the previous version built
atrev=`cat mac_old_revision || echo 0`
echo "Last revision built was $atrev"
echo "Current repository revision is $new_rev"

if [ "$atrev" =  "$new_rev" ];then
    echo "up to date"
else
    echo $new_rev > mac_old_revision

    # build the new package
    rm -rf build
    mkdir build
    cd build

    cmake -DENABLE_DOXYGEN=OFF -DENABLE_APP_BUNDLE_INSTALL=ON -DBOOST_ROOT=/opt/boost-1.46.0/ -DBoost_NO_SYSTEM_PATHS=ON -DPYTHON_EXECUTABLE=/usr/bin/python ../hoomd/

    make package -j6
    mv hoomd-*.dmg /Users/joaander/devel/incoming/mac
fi

echo "--- Done!"
echo ""

echo "--- Building nightly Mac OS X hoomd package on `date`"

# get up to the root of the tree
cd ..
cd ..

# update to the latest rev
git pull origin master

new_rev=`git describe`

# up another level out of the source repository
cd ..

#check the previous version built
atrev=`cat mac_old_revision || echo 0`
echo "Last revision built was $atrev"
echo "Current repository revision is $new_rev"

if [ "$atrev" =  "$new_rev" ];then
    echo "up to date"
else
    echo $new_rev > mac_old_revision

    # build the new package
    rm -rf build
    mkdir build
    cd build

    cmake -DENABLE_DOXYGEN=OFF -DENABLE_APP_BUNDLE_INSTALL=ON -DBOOST_ROOT=/opt/boost-1.48.0/ -DBoost_NO_SYSTEM_PATHS=ON -DPYTHON_EXECUTABLE=/usr/bin/python ../code

    make package -j6
    mv hoomd-*.dmg /Users/joaander/devel/incoming/mac
fi

echo "--- Done!"
echo ""

Update mac nightly build script
Update mac nightly build script

The nighly mac build script needs to be updated to pull from a git repository instead of running svn update. Also updated the boost library on the build machine to boost 1.48.0.