loom
1#!/bin/bash
2
3# Формирование изображений диаграм АСД для основных операций SBL
4
5dir=doc/tree6png=loom7
8if [ -d $dir/$png ]9then
10echo $dir/$png exists, cleaning...11#rm -rf $dir/$png/*.png12else
13mkdir $dir14mkdir $dir/$png15fi
16
17echo Prepare grammar...18bin/simodo-grammatize -z slr -u data/grammar/simodo-script.fuze19
20for file in test/source/engine/${png}/*.s-script test/source/engine/${png}/modules/*.s-script21do
22echo ${file}23fbname=$(basename "$file" | cut -d. -f1)24bin/simodo-parse -l -g data/grammar/s-script.fuze -S ${file} -s test/tmp/${fbname}.dot25if [ -e test/tmp/${fbname}.dot ]26then27dot -Tpng test/tmp/${fbname}.dot -o${dir}/${png}/${fbname}.png28fi29done
30
31rm -rf test/tmp/*.dot32