Distribute data with layers instead of data/ dir

This was originally done to make the gitignoring easier, but ended up
being somewhat more complex when trying to include files, so they're
moving out closer to the point of use.
This commit is contained in:
Chandler Swift 2023-07-25 19:12:30 -05:00
parent c74edcb8c0
commit 7957523c3c
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
21 changed files with 49 additions and 51 deletions

View file

@ -14,4 +14,11 @@ build: # TODO: add get_data as a prereq
# this file much more often. Maybe as things stabilize!
.PHONY: get_data
get_data:
./data/get_all_data.sh
@find ./ -name "get_data.*" \! -executable | grep . >/dev/null \
&& echo "Non-executable files found; consider running:" \
&& find ./ -name "get_data.*" \! -executable -exec echo " " chmod +x {} \; \
&& exit 1 \
|| true
@find ./ -name "get_data.*" -executable \
-exec sh -c 'cd $$(dirname {}) && echo processing {}; ./$$(basename {}) | sed --unbuffered "s/^/ /"' \;