diff clients/utils/object_header.sh @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/clients/utils/object_header.sh	Sun Jun 29 18:44:17 2008 +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