product.scm.sh

Grégoire Sutre, 07/22/2010 03:09 pm

Download (228 Bytes)

 
1
#!/bin/sh
2
3
cat <<EOF
4
scm product :
5
nb_channels = 1 ;
6
parameters :
7
real a ;
8
EOF
9
10
i=1
11
while [ $i -le $1 ]; do
12
cat <<EOF
13
14
automaton proc$i :
15
initial : 0
16
state 0 : to 1 : when true ;
17
state 1 : to 0 : when true ;
18
EOF
19
i=$((i+1))
20
done