move `rake crashlog' task into project.rb

This commit is contained in:
Watson
2013-07-22 20:18:18 +09:00
parent bdd7e1f8a9
commit 1795f11a0f
3 changed files with 6 additions and 12 deletions

View File

@@ -69,3 +69,9 @@ task :ctags do
sh "#{ctags} --options=\"#{config}\" #{bs_files.map { |x| '"' + x + '"' }.join(' ')}"
end
end
desc "Show a last crash log"
task :crashlog do
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
sh "open -a Console #{logs.last}"
end

View File

@@ -166,9 +166,3 @@ task :static do
App.info 'Create', fat_lib
sh "/usr/bin/lipo -create #{libs.join(' ')} -output \"#{fat_lib}\""
end
desc "Show a last crash log"
task :crashlog do
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
sh "open -a Console #{logs.last}"
end

View File

@@ -90,9 +90,3 @@ desc "Create a .a static library"
task :static do
App.build('MacOSX', :static => true)
end
desc "Show a last crash log"
task :crashlog do
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
sh "open -a Console #{logs.last}"
end