3 # converts ancient microsoft paint files to PNG format using recoil.
4 # arose from a question on askubuntu: http://askubuntu.com/questions/881412/how-can-i-convert-really-old-files-in-microsoft-paint-format-msp-to-a-usabl
5 # requires recoil to be installed: http://recoil.sourceforge.net/
7 # run two phases since sometimes the ending is capitalized.
8 for suffix in .msp .MSP; do
9 if [ ! -z "$(ls *${suffix} 2>/dev/null)" ]; then
10 for i in *${suffix} ; do recoil2png -o $(basename $i ${suffix}).png $i ; done