Skip to content

Commit

Permalink
Ädocs, add make stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Dec 24, 2024
1 parent 5354d7a commit f8d79cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Gen tile sub-lists
id: chunks
run: |
TILENAME=test make test_tile_list_chunks
make z_ao_test
CHUNKS=$(ls test_tile_list.* | awk -F '.' '/.+/ { printf "%s\"z_test_%s.zip\"", sep, ""$2""; sep=", " }')
echo "chunks={\"chunk\":[$CHUNKS]}" >> $GITHUB_OUTPUT
Expand All @@ -33,4 +33,4 @@ jobs:
uses: ./.github/workflows/build-tiles.yml
with:
zip: ${{ matrix.chunk }}
setname: test
setname: test
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
#
# Quick start:
# Generate tile set:
# make clean
# make z_ao_eur
# make -j $(nproc --ignore=2)
# or:
# nice make -j $(nproc --ignore=2) z_ao_eur
#
# Generate single tile:
# make z_ao__single_+78+015
#
# Stats:
# make stats
# Test:
# make test_+78+015

Expand All @@ -27,6 +29,19 @@ SHELL=/bin/bash
OP:=(
CP:=)

stats:
@printf "%28s\n" missing
@for tiles in *_tile_list; do \
printf "%-20s %4d/%4d\n" \
"$$tiles" \
$$(comm --total -123 \
<(sort $$tiles) \
<(find build/Tiles/ -name '*.dsf' -printf "%f\n" | sort) | sed -E 's/([0-9]+)[\t]([0-9]+)[\t]([0-9]+).*/\1/') \
$$(wc -l $$tiles | cut -f1 -d' '); \
done
@printf "\ngenerated_by:\n"
@sort build/Tiles/zOrtho4XP_*/_docs/generated_by* | uniq -c

# creates directories
%/:
@echo "[$@]"
Expand Down

0 comments on commit f8d79cf

Please sign in to comment.