Skip to content
Find file
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
Jump to Line
Something went wrong with that request. Please try again.