From: Chris Koeritz Date: Sun, 24 Dec 2017 19:44:05 +0000 (-0500) Subject: attempting to auto-fix wine link issues X-Git-Tag: 2.140.108~19 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=8642906bd6ff49c173c187839a1e74a76795f684;p=feisty_meow.git attempting to auto-fix wine link issues lower case and upper case names are sometimes sloppily used by the mod coders rather than the exact path, which causes problems on wine. --- diff --git a/scripts/wine/wine_link_maker.sh b/scripts/wine/wine_link_maker.sh new file mode 100644 index 00000000..743964e3 --- /dev/null +++ b/scripts/wine/wine_link_maker.sh @@ -0,0 +1,13 @@ + + +# find all the directories at this height. +find . -mindepth 1 -maxdepth 1 -type d -exec echo {} ';' >$TMP/filestolink.txt +# make links with all lower case and all upper case versions of the names. +while read line; do + ln -s "$line" "$(echo $line | tr '[:upper:]' '[:lower:]')" + ln -s "$line" "$(echo $line | tr '[:lower:]' '[:upper:]')" +done < $TMP/filestolink.txt +# remove dead links. +\rm $(find . -type l ! -exec test -e {} \; -print) + +