mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
forgot to add these
This commit is contained in:
parent
86afd42148
commit
fde64e0b3d
145 changed files with 9044 additions and 0 deletions
24
backup.rails2.3/plugins/swf_fu/install.rb
Normal file
24
backup.rails2.3/plugins/swf_fu/install.rb
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
require "fileutils"
|
||||
|
||||
# Some paths
|
||||
src = File.dirname(__FILE__)+"/assets"
|
||||
dest = File.dirname(__FILE__)+"/../../../public"
|
||||
|
||||
filename = "#{dest}/javascripts/swfobject.js"
|
||||
unless File.exist?(filename)
|
||||
FileUtils.cp "#{src}/javascripts/swfobject.js", filename
|
||||
puts "Copying 'swfobject.js'"
|
||||
end
|
||||
|
||||
unless File.exist?("#{dest}/swfs/")
|
||||
FileUtils.mkdir "#{dest}/swfs/"
|
||||
puts "Creating new 'swfs' directory for swf assets"
|
||||
end
|
||||
|
||||
filename = "#{dest}/swfs/expressInstall.swf"
|
||||
unless File.exist?(filename)
|
||||
FileUtils.cp "#{src}/swfs/expressInstall.swf", filename
|
||||
puts "Copying 'expressInstall.swf', the default flash auto-installer."
|
||||
end
|
||||
|
||||
puts "Installation done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue