src/ai/api/squirrel_export.sh
branchnoai
changeset 9526 a4ad60ba03be
child 9528 b2cc6f31363c
equal deleted inserted replaced
9525:1d6c509b56ee 9526:a4ad60ba03be
       
     1 #!/bin/bash
       
     2 
       
     3 # This must be called from within the src/ai/api directory.
       
     4 
       
     5 for f in `ls *.hpp `; do
       
     6 	case "$f" in
       
     7 		# these files should not be changed by this script
       
     8 		"ai_controller.hpp" | "ai_object.hpp") continue;
       
     9 	esac
       
    10 	awk -f squirrel_export.awk ${f} > ${f}.tmp
       
    11 	if [ -n "`diff ${f} ${f}.tmp`" ]; then
       
    12 		mv ${f}.tmp ${f}
       
    13 	else
       
    14 		rm -f ${f}.tmp
       
    15 	fi
       
    16 done