From 46f0d65cb7e922a0491366e48912a65796a0fe68 Mon Sep 17 00:00:00 2001 From: cavesomething Date: Wed, 5 May 2010 11:42:37 +0000 Subject: [PATCH] Add useage note in comments git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13129 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/dialog/dialog_check.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/dialog/dialog_check.py b/python/dialog/dialog_check.py index 1197664f8..61e567969 100644 --- a/python/dialog/dialog_check.py +++ b/python/dialog/dialog_check.py @@ -2,6 +2,11 @@ # dialog_check.py # This script is *not* intended to be used by the crossfire plugin, it is # designed to verify the correctness of a dialog script -independantly of the crossfire server. +# Typically you will want to run this script against a single file, the one that you specify in +# the event_say, but if you want to check all of the .msg files in the map distribution, then +# you can run something like: +# for i in $(grep -h name.*msg ../../ -r | cut -d " " -f 2 | sort | uniq); do echo $i && python dialog_check.py "../../"$i; done +# from maps/python/dialog import cjson import sys