- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotall.sh
More file actions
Latest commit
executable file
·34 lines (28 loc) · 532 Bytes
/
Copy pathplotall.sh
File metadata and controls
executable file
·34 lines (28 loc) · 532 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -e
forxin$(find . -name '*.phases');do
base="$(dirname $x)/$(basename $x .phases)"
(
./plot.py $base>$base.log 2>&1
if [[ "$?"!= 0 ]];then
echo$base error
cat $base.log
else
echo$base ok
fi
) &
done
wait
cat > index.html <<EOF
<html>
<body>
EOF
forxin$(find data -name '*.png'| sort -t @ -k 2 -r);do
cat >> index.html <<EOF
<img src="$x"><br>
EOF
done
cat >> index.html <<EOF
</body>
</html>
EOF