Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Auto-update apps with Subversion and Folder Actions Apps
I'm a developer. I keep my code in a Subversion repository. I like to keep my boss up-to-date with the latest build(s) of my project. In order to make this as transparent as possible for him, I combined Subversion, AppleScript, and Folder Action Scripts. He keeps two folders on his Desktop for this project: nightly (the latest nightly builds) and stable (the latest stable build).

I attach this AppleScript to the stable folder:
on opening folder this_folder
  do shell script "cd ~/Desktop/stable; /usr/local/bin/svn up"
end opening folder
Now, each time he opens the stable folder (that contains my application), Subversion gets the latest copy of the application. Repeat the above with obvious changes to get nightly to sync also. In order for the above to work, you need to perform two extra steps (one time only, when you set everything up):
  1. Install Subversion, either from Fink or Martin Ott's homepage (TheCodingMonkeys co-founder).
  2. Do the initial checkout:
    svn co svn://somehost/someproject/stable/ ~/Desktop/stable
    
[robg adds: I haven't tested this one...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[14,249 views]  

Auto-update apps with Subversion and Folder Actions | 2 comments | Create New Account
Click here to return to the 'Auto-update apps with Subversion and Folder Actions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto-update apps with Subversion and Folder Actions
Authored by: geocritter on Jan 28, '05 10:57:30PM
If you're developing Java you could use CruiseControl to automate the whole process. It even keeps track of junit tests among other things.

[ Reply to This | # ]
Auto-update apps with Subversion and Folder Actions
Authored by: mankoff on Feb 19, '05 02:50:21PM