]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/iodelay-config.git/blob - generate-all-modes.sh
script: Change debug messages
[glsdk/iodelay-config.git] / generate-all-modes.sh
1 #set -x
2 rm -f mode*.txt output.txt
3 PRM="$1 $2 $3 $4 $5 $6 $7 $8 -i 1"
5 echo 0 | ./iodelay-autogen.py $PRM > output.txt
6 cat output.txt | grep MENU > modes.txt
7 len=`cat modes.txt | wc -l`
8 len=$(($len - 3))
10 cat modes.txt
11 cat modes.txt > mode-all.txt
12 echo ">>> Found total modes $len"
13 for i in `seq 1 $len`
14 do
15         name=`cat modes.txt | grep "MENU: $i:" | cut -d ' ' -f3`
16         file="mode-$i-$name.txt"
17         echo ">>> Generating for mode $name -> $file"
18         echo $i | ./iodelay-autogen.py $PRM  > output.txt
19         cat output.txt | grep -A1000 "########" > $file
20         echo "## Auto generated pad/data for $name" >> mode-all.txt
21         cat $file  >> mode-all.txt
22 done
24 rm -f output.txt