From 18635541548b035b806bf90d7b9e1831b5e28627 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Fri, 10 Jul 2015 14:46:21 -0400 Subject: [PATCH] Make the scenario validating script validate embedded dialogs, if present --- rsrc/schemas/validate-scen.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rsrc/schemas/validate-scen.sh b/rsrc/schemas/validate-scen.sh index 4fa2764a..c539805e 100755 --- a/rsrc/schemas/validate-scen.sh +++ b/rsrc/schemas/validate-scen.sh @@ -43,6 +43,12 @@ for speech in $SCEN_PATH/towns/talk*.xml; do check-file dialogue "$speech" done +if [[ -d $SCEN_PATH/dialogs/ ]]; then + for dlog in $SCEN_PATH/dialogs/*.xml; do + check-file dialog "$dlog" + done +fi + if [[ $SCEN_PATH = scenario ]]; then rm -rf scenario fi