all repos — shwarp-tools @ 189be834b970629fa4e24a1de2f57d95e6e6674f

Tools and scripts

tool: init render-images
shwarp
Sat, 15 Aug 2026 18:20:22 -0400
commit

189be834b970629fa4e24a1de2f57d95e6e6674f

parent

5f8d91706864c7b9f455e3f8c6bd79acc66c004f

1 files changed, 27 insertions(+), 0 deletions(-)

jump to
A tools/render-images

@@ -0,0 +1,27 @@

+#!/bin/bash + + +if [[ $# -ne 3 ]] +then + echo "Usage: ./render-images <GIT_DIR> <MAP_FILENAME> <OUTPUT_DIR>" + echo -e "\texample: ./render-images . FOO.WAD out" + + exit 1 +fi + +GIT_DIR="$1" +MAP_FILENAME="$2" +OUTPUT_DIR="$3" + +mkdir -p "$OUTPUT_DIR" + +for commit in $(git -C "$GIT_DIR" log --oneline --reverse --format=format:%at_%h) +do + echo "$commit" + timestamp=$(echo $commit | cut -d_ -f1) + sha=$(echo $commit | cut -d_ -f2) + + git show \ + ${sha}:${MAP_FILENAME} \ + > ${OUTPUT_DIR}/${timestamp}_${sha}.${MAP_FILENAME} +done