Skip to content

Commit

Permalink
Merge branch 'release/v0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Kalmes committed Mar 4, 2014
2 parents c88793d + 1535d35 commit 0c326c1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# brewupdate #

brewupdate is a [launchd agent][launchd] to update [homebrew][homebrew] formulae automaticly every day at 11 AM (local time).

Brewupdate will not upgrade your installed formulae. It's sole responsibility is to fetch new formulae.

## How to Install ##
To install `brewupdate`, copy the plist to `~/Library/LaunchAgents` and run the command `launchctl load ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist` to load the LaunchAgent into the launchd manager.

Here is a quick rundown:
```
> mkdir ~/Library/LaunchAgents
> cp net.mkalmes.brewupdate.plist ~/Library/LaunchAgents
> launchctl load ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
```

## How to Upgrade ##
If you installed a previous version of brewupdate, unload the loaded LaunchAgent, copy the new agent to `~/Library/LaunchAgents`, and load the copied LaunchAgent.

Here is a quick rundown:
```
> launchctl unload ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
> cp net.mkalmes.brewupdate.plist ~/Library/LaunchAgents
> launchctl load ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
```

## … and where do I see what's updated? ##
Since OS X 10.8, [Apple removed the redirection][apple-removed-redirection] of `stdout` and `stderr` to `system.log`.

On OS X 10.5 to 10.7, <code>brewupdate</code> redirects the output to <code>/var/log/system.log</code> and can be easily viewed with <code>/Applications/Utilities/Console.app</code>. Use the search filter <code>net.mkalmes.brewupdate</code> on "All Messages" to display the list of new and updated formulae.

[launchd]: http://developer.apple.com/library/mac/#technotes/tn2083/_index.html
[homebrew]: https://github.com/mxcl/homebrew/
[apple-removed-redirection]: http://stackoverflow.com/a/15655471/1712728
13 changes: 0 additions & 13 deletions README.textile

This file was deleted.

2 changes: 2 additions & 0 deletions net.mkalmes.brewupdate.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<dict>
<key>Label</key>
<string>net.mkalmes.brewupdate</string>
<key>ProcessType</key>
<string>Background</string>
<key>EnvironmentVariables</key>
<dict>
<key>TERM</key>
Expand Down

0 comments on commit 0c326c1

Please sign in to comment.