files for lowercasing downloadable content from svencoop
This commit is contained in:
parent
8cd411c8be
commit
1337172b91
15
fastdl_sync/svencoop_lowercasing/lowercase.sh
Normal file
15
fastdl_sync/svencoop_lowercasing/lowercase.sh
Normal 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
|
16
fastdl_sync/svencoop_lowercasing/lowercase_res_content.py
Normal file
16
fastdl_sync/svencoop_lowercasing/lowercase_res_content.py
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user