Commit 665c0fed7a987ee1c62ee7cf83a0ba8191ac06fe

decided to us rsync instead of cp, since it is easier to ignore .svn files

Commit diff

tasks/tinymce_tasks.rake

 
1require 'fileutils'
12TINYMCE_PATH = File.join(RAILS_ROOT, "vendor/plugins/tinymce")
23
34namespace :tinymce do
45
56 desc 'Copy all files need for tinymce'
67 task :install do
7 js_path = File.join(TINYMCE_PATH, "javascripts/")
8 system("cp -r #{js_path}/tinymce/jscripts/* #{RAILS_ROOT}/public/javascripts/")
8 tinymce_path = File.join(TINYMCE_PATH, "javascripts/tinymce/jscripts/*")
9 js_path = File.join(RAILS_ROOT,"public/javascripts/")
10
11 # using rsync -aC copies ignores the svn files
12 system("rsync -aC #{tinymce_path} #{js_path}")
13
914 puts "Tiny MCE Files have been installed successfully"
1015 end
1116
toggle raw diff