forked from kubilus1/autoortho-scenery
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tiles list dependency rules (cleaner but long startup time)
- Loading branch information
1 parent
9f30168
commit bb1be18
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |