diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/object_header.sh	Mon Jan 11 23:34:52 2010 +0000
@@ -0,0 +1,10 @@
+#!/bin/bash
+# Adds an xml preprocessor directive to files named object.xml that indicates to fife that
+# these are object files. Call with the root directory to convert under as an argument such
+# as:
+#      ./object_header my_client/objects
+
+for file in `find $1 -name object.xml`; do
+	echo "<?fife type=\"object\"?>" | cat - $file >> tmp.xml
+	mv tmp.xml $file
+done