<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -358,7 +358,7 @@
 				GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
 				GCC_MODEL_TUNING = G5;
 				INFOPLIST_FILE = Info.plist;
-				INSTALL_PATH = &quot;$(HOME)/Applications&quot;;
+				INSTALL_PATH = /Applications;
 				PRODUCT_NAME = GitNub;
 				WRAPPER_EXTENSION = app;
 			};</diff>
      <filename>GitNub.xcodeproj/project.pbxproj</filename>
    </modified>
    <modified>
      <diff>@@ -44,6 +44,27 @@ task :clean do
   puts %x{ xcodebuild -alltargets clean OBJROOT=build/ SYMROOT=build/ }
 end
 
+desc 'Install GitNub.app and nub'
+task :install =&gt; [:testdeps, :install_app, :install_nub]
+
+desc 'Install GitNub.app in /Applications'
+task :install_app =&gt; [:uninstall_app, &quot;xcode:install:#{DEFAULT_TARGET}:#{RELEASE_CONFIGURATION}&quot;]
+
+desc 'Install nub in /usr/local/bin/'
+task :install_nub do
+  exec(&quot;sudo&quot;, &quot;cp&quot;, &quot;nub&quot;, &quot;/usr/local/bin/nub&quot;)
+end
+
+desc 'Uninstall /Applications/GitNub.app'
+task :uninstall_app do
+  # this is necessary for install_app, because Xcode, for some braindead reason,
+  # chmods the installed product a-w, so I can't overwrite or rm it
+  if File.exists?(&quot;/Applications/GitNub.app&quot;)
+    system(&quot;chmod&quot;, &quot;-R&quot;, &quot;u+w&quot;, &quot;/Applications/GitNub.app&quot;)
+    system(&quot;rm&quot;, &quot;-rf&quot;, &quot;/Applications/GitNub.app&quot;)
+  end
+end
+
 desc &quot;Add files to Xcode project&quot;
 task :add do |t|
  files = ARGV[1..-1]
@@ -125,13 +146,13 @@ namespace :xcode do
  targets = xcode_targets
  configs = xcode_configurations
 
- %w{build clean}.each do |action|
+ %w{build clean install}.each do |action|
    namespace &quot;#{action}&quot; do
 
      targets.each do |target|
        desc &quot;#{action} #{target}&quot;
        task &quot;#{target}&quot; do |t|
-         puts %x{ xcodebuild -target '#{target}' #{action} OBJROOT=build/ SYMROOT=build/ }
+         puts %x{ xcodebuild -target '#{target}' #{action} OBJROOT=build/ SYMROOT=build/ DSTROOT=/ }
        end
 
        # alias the task above using a massaged name
@@ -143,7 +164,7 @@ namespace :xcode do
          configs.each do |config|
            desc &quot;#{action} #{target} #{config}&quot;
            task &quot;#{config}&quot; do |t|
-             puts %x{ xcodebuild -target '#{target}' -configuration '#{config}' #{action} SYMROOT=build/ OBJROOT=build/ }
+             puts %x{ xcodebuild -target '#{target}' -configuration '#{config}' #{action} SYMROOT=build/ OBJROOT=build/ DSTROOT=/ }
            end
          end
        end</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b667ee1fa928670b93832480f98e72f48ab55781</id>
    </parent>
  </parents>
  <author>
    <name>Kevin Ballard</name>
    <email>kevin@sb.org</email>
  </author>
  <url>http://github.com/Caged/gitnub/commit/ceed7d12eaa21647294939eb24010c5aa2b2f0e0</url>
  <id>ceed7d12eaa21647294939eb24010c5aa2b2f0e0</id>
  <committed-date>2008-05-14T02:16:45-07:00</committed-date>
  <authored-date>2008-05-14T02:16:26-07:00</authored-date>
  <message>Add install (and related) tasks to the Rakefile</message>
  <tree>652d6c4150cee161cf258207010202a20ca88670</tree>
  <committer>
    <name>Kevin Ballard</name>
    <email>kevin@sb.org</email>
  </committer>
</commit>
