From 1337172b918a50210bed0a2f6600fceb3963018a Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 13 Sep 2024 15:15:35 +0200 Subject: [PATCH] files for lowercasing downloadable content from svencoop --- fastdl_sync/svencoop_lowercasing/lowercase.sh | 15 +++++++++++++++ .../lowercase_res_content.py | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 fastdl_sync/svencoop_lowercasing/lowercase.sh create mode 100644 fastdl_sync/svencoop_lowercasing/lowercase_res_content.py diff --git a/fastdl_sync/svencoop_lowercasing/lowercase.sh b/fastdl_sync/svencoop_lowercasing/lowercase.sh new file mode 100644 index 00000000..0781cb02 --- /dev/null +++ b/fastdl_sync/svencoop_lowercasing/lowercase.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +to_lowercase() { + find "$1" -depth -execdir rename 's/(.*)/\L$1/' {} + + ./lowercase_res_content.py +} + +to_lowercase "./svencoop_addon" + +inotifywait -m -r -e create -e moved_to -e modify --format '%w%f' "./svencoop_addon" | while read NEWFILE +do + echo "File change: $NEWFILE" + to_lowercase "./svencoop_addon" + sleep 1 +done diff --git a/fastdl_sync/svencoop_lowercasing/lowercase_res_content.py b/fastdl_sync/svencoop_lowercasing/lowercase_res_content.py new file mode 100644 index 00000000..28c154d7 --- /dev/null +++ b/fastdl_sync/svencoop_lowercasing/lowercase_res_content.py @@ -0,0 +1,16 @@ +#!/bin/bash + +to_lowercase() { + find "$1" -depth -execdir rename 's/(.*)/\L$1/' {} + + ./lowercase_res_content.py +} + +to_lowercase "./svencoop_addon" + +inotifywait -m -r -e create -e moved_to -e modify --format '%w%f' "./svencoop_addon" | while read NEWFILE +do + echo "File change: $NEWFILE" + to_lowercase "./svencoop_addon" + sleep 1 +done +