add new print-friendly folder, and update rbuild accordingly. also refactor+fix xBar

This commit is contained in:
zhao
2023-02-12 11:07:07 -05:00
parent d48554c304
commit 97a5783d0d
32 changed files with 117448 additions and 398443 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
STL_TARGET_DIR=stl
RACK_DIR=rack
RACK_DIR=rack/print
RACK_TARGET_DIR="$STL_TARGET_DIR"/"$RACK_DIR"
echo "Starting build"
@ -17,9 +17,10 @@ rbuild() {
build_scad "$item"
elif [[ "$command" == "clean" ]]; then
clean_scad "$item"
else
echo "Command not supported 😔";
fi
echo "That all folks"
}
build_scad() {
@ -50,7 +51,14 @@ build_scad_file() {
}
build_scad_dir() {
echo "build_scad_dir TODO"
for ITEM in "$RACK_DIR"/*.scad; do
local base_item="$(basename "${ITEM}")";
build_scad_file "${base_item%.*}";
done
}
clean_scad_file() {