all repos — shwarp-tools @ 279abd88cdf690a17fb821e8fbe4d54434a1034b

Tools and scripts

tool: init script to track changes to WAD

Eventually will use these to make a timelapse.
shwarp
Sat, 15 Aug 2026 15:17:19 -0400
commit

279abd88cdf690a17fb821e8fbe4d54434a1034b

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

jump to
A WIP/idmitation/autocommit

@@ -0,0 +1,28 @@

+#!/bin/bash + +if [[ $# -ne 2 ]] +then + echo "Usage: ./autocommit <DIR> <FILE> [COMMIT_MESSAGE]" + exit 1 +fi + +DIRECTORY="$1" +FILE="$2" +COMMIT_MESSAGE="auto: $FILE changed" + +while true +do + cd "$DIRECTORY" + + inotifywait -qq -e CLOSE_WRITE "$FILE" + + echo "File changed: $DIRECTORY/$FILE" + + git add "$FILE" + git commit -m "$COMMIT_MESSAGE" + + # Keep duplicate updates out + sleep 5s + + git log +done