Game Development Community

Deleting dso and ml files in *nix environment

by Frank Carney · 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 Started programming in HS and have never stopped. Now an 18 year vet of programming anything from assembler on a NES console to a nuclear waste processing system. If it can be programmed I may have tried to program it!


#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.