mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-09-13 15:49:50 +00:00
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:
parent
555a7874bf
commit
45940e8059
6 changed files with 1718 additions and 258 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue