comparison tools/object_header.sh @ 378:64738befdf3b

bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 11 Jan 2010 23:34:52 +0000
parents
children 81641655bc38
comparison
equal deleted inserted replaced
377:fe6fb0e0ed23 378:64738befdf3b
1 #!/bin/bash
2 # Adds an xml preprocessor directive to files named object.xml that indicates to fife that
3 # these are object files. Call with the root directory to convert under as an argument such
4 # as:
5 # ./object_header my_client/objects
6
7 for file in `find $1 -name object.xml`; do
8 echo "<?fife type=\"object\"?>" | cat - $file >> tmp.xml
9 mv tmp.xml $file
10 done