Skip to content

Commit

Permalink
add tiles list dependency rules (cleaner but long startup time)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Dec 10, 2024
1 parent 9f30168 commit bb1be18
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bin/genMakefileTilelistRules
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# Outputs Makefile rules for tilelists.
# var/run/eur_tiles: build/Tiles/*/*/*/+51-010.dsf ...

# saner programming env: these switches turn some bugs into errors
set -o errexit -o pipefail -o noclobber -o nounset

for tilesetFilename in *_tile_list; do
tileset="$(basename "$tilesetFilename" _tile_list)"
printf "var/run/%s_tiles:" "$tileset"

for tileDsf in $(cat "$tilesetFilename"); do
printf "build/Tiles/*/*/*/%s " "$tileDsf"
done

echo
echo ' @echo "[$@]"'
echo ' mkdir -p var/run/'
echo ' @touch $@'
done

0 comments on commit bb1be18

Please sign in to comment.