mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
451 B
Bash
20 lines
451 B
Bash
4 years ago
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# Script to generate Sequence Diagram images with mscgen
|
||
|
#
|
||
|
|
||
|
cd extending/app-layer/img
|
||
|
|
||
|
for FILE in *.msc ; do
|
||
|
# call mscgen and convert each file in images dir
|
||
|
mscgen -T png -F Arial $FILE
|
||
|
# if command fails, lets inform about that
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo "$FILE couldn't be converted in the devguide"
|
||
|
# let's exit to make it more evident something is amiss
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exit 0
|