Permalink
Browse files

Clean and uninstall before installing templates

 - seems to help Xcode actually copy headers properly
 - ensures OCMock templates that used injection are removed
  • Loading branch information...
1 parent fbe7305 commit 63e2fd18c8294418107c19f4fe4e03ab4265da4c @idoru idoru committed Jul 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
@@ -181,6 +181,7 @@ end
desc "Remove code snippets and templates"
task :uninstall do
+ puts "\nRemoving old templates...\n"
system_or_exit "rm -rf \"#{XCODE_TEMPLATES_DIR}/File Templates/Cedar\""
system_or_exit "rm -rf \"#{XCODE_TEMPLATES_DIR}/Project Templates/Cedar\""
system_or_exit "grep -Rl #{SNIPPET_SENTINEL_VALUE} #{XCODE_SNIPPETS_DIR} | xargs -I{} rm -f \"{}\""
@@ -220,7 +221,8 @@ namespace :dist do
end
desc "Build frameworks and install templates and code snippets"
-task :install => [ "dist:prepare" ] do
+task :install => [ :clean, :uninstall, "dist:prepare" ] do
+ puts "\nInstalling templates...\n"
system_or_exit %{ditto "#{DIST_STAGING_DIR}/Library" ~/Library}
end

0 comments on commit 63e2fd1

Please sign in to comment.