loom
1#!/bin/bash
2
3# Формирование изображений диаграм АСД для основных операций SBL
4
5dir=doc/tree6png=fuze7
8if [ -d $dir/$png ]9then
10echo $dir/$png exists, cleaning...11#rm -rf $dir/$png/*.png12else
13mkdir $dir14mkdir $dir/$png15fi
16
17echo Starting to create diagrams...18
19for file in data/grammar/*.fuze20do
21echo ${file}22fbname=$(basename "$file" | cut -d. -f1)23bin/simodo-grammatize -S ${file} -s test/tmp/${fbname}.dot24if [ -e test/tmp/${fbname}.dot ]25then26dot -Tpng test/tmp/${fbname}.dot -o${dir}/$png/${fbname}.png27fi28done
29
30rm -rf test/tmp/*.dot31