#!/bin/bash
#
#curl http://svn.reboot.fm/trunk/Reboot-Upload/build.macosx.sh -o build.macosx.sh

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/build.macosx.py -o build.macosx.py &>/dev/null 

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/Lists.py -o Lists.py &>/dev/null

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/guiHandling.py -o guiHandling.py &>/dev/null 

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/rdfDc.py -o rdfDc.py &>/dev/null 

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/rut.py -o rut.py &>/dev/null 

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/upload.py -o upload.py &>/dev/null 

curl -B http://svn.reboot.fm/trunk/Reboot-Upload/PCont.py -o PCont.py &>/dev/null 



rm -rf 'reboot.fm Upload Tool' &> /dev/null 

python build.macosx.py --strip --standalone build &> /dev/null 


rm reboot.fm_upload_tool.macosx.dmg &> /dev/null

hdiutil create -srcfolder 'reboot.fm Upload Tool'  reboot.fm_upload_tool.macosx.temp &> /dev/null 

hdiutil convert reboot.fm_upload_tool.macosx.temp.dmg  -format UDZO -o reboot.fm_upload_tool.macosx &> /dev/null 

rm reboot.fm_upload_tool.macosx.temp.dmg &> /dev/null 

scp reboot.fm_upload_tool.macosx.dmg svn.reboot.fm:/var/www/download.reboot.fm/

##########
# TODO
# copy the dmg to svn.reboot.fm:/var/www/download.reboot.fm
###########################
