Game Development Community

Deleting dso and ml files in *nix environment

by Demolishun · in Torque Game Engine · 03/10/2007 (6:51 pm) · 2 replies

Here is a quick and dirty set of scripts:

deldso
find ./ -name *.dso -exec rm -vrf {} \;

delml
find ./ -name *.ml -exec rm -vrf {} \;

makefile
all:
        @echo "Usage: make cleandso or make cleanml"
        @echo "Cleans dso and ml files"

cleandso:
        ./deldso

cleanml:
        ./delml

Put all three of these files in a the example directory for the scripts. Note: you do not need the -v switch for rm, but it tells you if it is doing something.

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
03/11/2007 (6:27 am)
You can merge those into a single command if you wanted:

find ./ \( -name "*.dso" -o -name "*.ml" \) -exec rm -v {} \;

Access to unix style command line tools is a great reason to have cygwin installed in windows :)
#2
03/11/2007 (4:21 pm)
I wanted them separate because I hate redoing lighting. I liked having the functionality of either.