From c1c717dfb213d8e88af746fad3c06b9db3f96a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=20Mun=CC=83oz?= Date: Mon, 20 Jul 2009 16:04:45 +0800 Subject: [PATCH] Added :restart task to Rakefile, so that Safari is restarted when compiling a new ClickToFlash version. Signed-off-by: Jonathan 'Wolf' Rentzsch --- Rakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 8de54a84..ec12e132 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,10 @@ +desc "Restart Safari" +task :restart do + system("osascript -e 'tell application \"Safari\"' -e 'quit' -e 'end tell' && osascript -e 'tell application \"Safari\"' -e 'activate' -e 'end tell'") +end + desc "Build the Release configuration of the plugin and install for the current user." -task :default do +task :release do system('xcodebuild -configuration Release -target "Install plugin for user"') end @@ -7,3 +12,5 @@ desc "Build the Debug configuration of the plugin and install for the current us task :debug do system('xcodebuild -configuration Debug -target "Install plugin for user"') end + +task :default => [:release, :restart] \ No newline at end of file