Fix up custimzer.scad

also add git post-commit hook to generate it, so I don't have to do this again
This commit is contained in:
Bob 2020-04-24 19:51:43 -04:00
parent 555a7874bf
commit 45940e8059
6 changed files with 1718 additions and 258 deletions

View file

@ -5,12 +5,10 @@ module OpenSCAD
Dir.chdir File.dirname(filename)
lines = lines.flat_map do |line|
# please note we do not implement `use` at all
if line =~ /(include|use)\s*<(.*)>/
# File.readlines("./#{$2}")
expand("./#{$2}")
# in lieu of actually implementing `use`, we can just cull this final line from key.scad
elsif line =~ /example\_key\(\);/
""
else
line
end