Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 309 Bytes
def compile(filename)
`cd src; openscad -o ../print/#{filename}.stl #{filename}.scad`
end
task :default => :compile
task :compile do
Dir.glob('src/*.scad') do |path|
puts "Compiling #{path}..."
filename = File.basename(path)[0..-(File.extname(path).length + 1)]
compile(filename)
end
end