Let the script to generate the sources also open the resulting files.

This commit is contained in:
Michael Schwarz 2014-12-04 10:17:40 +01:00
parent 260351e7db
commit b3f93f02fd
2 changed files with 2 additions and 2 deletions

View file

@ -44,4 +44,4 @@ $(foreach i,$(COMPILED_SCAD_FILES),$(eval $(i): $(filter $(dir $(i))%,$(LIBRARY_
# Rule for automaticlaly generated OpenSCAD files.
$(GENERATED_FILES): generate_sources.sh
./generate_sources.sh $@ > $@
./generate_sources.sh $@

View file

@ -13,7 +13,7 @@ function generate_file() {
if ! [ "$current_file_name" ]; then
echo "$file_name"
elif [ "$current_file_name" == "$file_name" ]; then
"${generate_command[@]}"
"${generate_command[@]}" > "$file_name"
fi
}