all repos — shwarp-tools @ 41d2f8f6e604e5a92412161542ebe223b486a0e2

Tools and scripts

tool(render-timelapse): set default OUTPUT_DIR

Related: updates usage text while here.
shwarp
Sun, 30 Aug 2026 18:08:47 -0400
commit

41d2f8f6e604e5a92412161542ebe223b486a0e2

parent

2ec44fb23e274984c76ae00a508df45b0ecf5b56

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M tools/render-timelapse → tools/render-timelapse

@@ -1,10 +1,11 @@

#!/bin/bash -if [[ $# -ne 2 ]] +if [[ $# -lt 1 ]] then - echo "Usage: ./render-timelapse <FILE_PATH> <OUTPUT_DIR>" - echo -e "\texample: ./render-images ./file_path/FOO.WAD out" + echo "Usage: ./render-timelapse <FILE_PATH> [OUTPUT_DIR]" + echo -e "\texample: ./render-images ./file_path/FOO.WAD" + echo -e "\texample: ./render-images ./FOO.WAD /tmp/output" exit 1 fi

@@ -17,7 +18,7 @@ fi

MAP_FILENAME=$(basename "$1") GIT_DIR=$(echo ${1::-"$((${#MAP_FILENAME} + 1))"}) -OUTPUT_DIR="$2" +OUTPUT_DIR="${2-"${GIT_DIR}/timelapse-output"}" if [ ! -d "$GIT_DIR/.git" ] || ! git -C "$GIT_DIR" rev-parse 2>/dev/null then