check.sh [shell-unix-generic]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
for i in ~/Projects/rockbox/firmware/target/arm/imx233/*.h; do
    python check.py "$i" >> imx233.list
done
for i in ~/Projects/bootloader/regs/*.h; do
    python check.py -c "$i" >> stmp37xx.list
done

while read line; do
    P1=$(echo "$line" | awk '{print $1};')
    P2=$(echo "$line" | awk '{print $2};')
    L1=$(grep -m 1 "$P1" stmp37xx.list)
    P3="None"
    P3=$(echo "$L1"   | awk '{print $2};')
    if [ "$P3" == "" ]; then
        P3="Not even present!"
    fi
    if [ "$P2" != "$P3" ]; then
        echo "$P1"
        echo "$P2 <=> $P3"
    fi
done < imx233.list

rm imx233.list stmp37xx.list