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 +