mirror of
https://github.com/videojs/video.js.git
synced 2024-12-27 02:43:45 +02:00
17 lines
383 B
Ruby
17 lines
383 B
Ruby
#! /usr/bin/env ruby
|
|
# Create javascript file with list of source files for easy inclusion in other development files.
|
|
|
|
# puts ARGV[0]
|
|
|
|
File.open("source-list.js", "w+") do |file|
|
|
file.puts "var vjsSourceList = [];"
|
|
|
|
|
|
Dir.foreach('../src') do |item|
|
|
next if item == '.' or item == '..' or item == '.DS_Store'
|
|
|
|
file.puts "vjsSourceList.push('src/#{item}')"
|
|
|
|
end
|
|
|
|
end |