made docs build silent, added clean_docs target
[feisty_meow.git] / scripts / pictures / batch_convert_msp2png.sh
1 #!/bin/bash
2
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/
6
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
11   fi
12 done
13