attempting to auto-fix wine link issues
[feisty_meow.git] / scripts / wine / wine_link_maker.sh
1
2
3 # find all the directories at this height.
4 find . -mindepth 1 -maxdepth 1 -type d -exec echo {} ';' >$TMP/filestolink.txt 
5 # make links with all lower case and all upper case versions of the names.
6 while read line; do
7   ln -s "$line" "$(echo $line | tr '[:upper:]' '[:lower:]')"
8   ln -s "$line" "$(echo $line | tr '[:lower:]' '[:upper:]')"
9 done < $TMP/filestolink.txt 
10 # remove dead links.
11 \rm $(find . -type l ! -exec test -e {} \; -print)
12
13