files for lowercasing downloadable content from svencoop

This commit is contained in:
jenz 2024-09-13 15:15:35 +02:00
parent 8cd411c8be
commit 1337172b91
2 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -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