blob: 4f337ca75351924d153dd9138f2796fc97a9c59d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Convert names of data-files to lower-case
# location of the data-files
GAMES_DATADIR=@GAMES_DATADIR@
cd "${GAMES_DATADIR}" || exit 1
# convert to lowercase
find . -exec sh -c 'echo "${1}"
lower="`echo "${1}" | tr [:upper:] [:lower:]`"
[ -d `dirname "${lower}"` ] || mkdir `dirname ${lower}`
[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
# remove leftover
rm -r ./TILECACHE ./STSOUNDS
|