Skip to content

Commit

Permalink
added Rakefile for compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamwilhelm committed Jun 13, 2012
1 parent 42423e4 commit e684be9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
@@ -0,0 +1,15 @@

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

0 comments on commit e684be9

Please sign in to comment.