i recently bought a copy of quake III arena. i was curious to see what textures still need to be replace so i unpacked the textures into a folder, cd'd into it and used this command...
find | egrep "\.jpg$|\.tga$" > ~/quakelist.txt... to create a text file called
quakelist.txt that listed of all the jpgs and tgas in the original game. a zipped copy of this list is available here...
http://www.mediafire.com/?08nm1g0j9pu...now i needed to compare it to what was in the subversion repository. so i downloaded the textures from the repository with this command...
svn co http://openarena.ws/svn/textures/...now all i need to do is generate a list of the openarena textures and compare it to
quakelist.txt to see what textures still need to be replaced. i wrote a little script to do this...
#!/bin/bash
#define where quakelist.txt file is. (EDIT THIS).
quakelist="/home/hyp3r/quakelist.txt"
#define the folder that contains the openarena textures. (EDIT THIS).
openfolder="/home/hyp3r/games/openarena-subversion/textures"
#refresh the textures before comparing.
cd $openfolder
svn update
#generate a list of textures that openarena has.
cd $openfolder
find | egrep "\.jpg$|\.tga$" > /tmp/oalist
#compare quakelist to oalist, filter out which ones quakelist has that oalist doesn't and send the output to a new text file.
diff $quakelist /tmp/oalist | grep "<" > /tmp/missing-textures.txt
#show the list and how many there are
nl /tmp/missing-textures.txt