Indentation fix, cleanup.
[AROS.git] / arch / all-pc / acpica / tests / templates / templates.sh
blob06c08143df42521a5ebffd897779307a7237eb0c
1 #!/bin/bash
3 rm -f *.aml *.asl *.dsl *.log
5 files=`ls`
7 if [ "$1" == 1 ]; then
8 ASL_COMPILER="../../generate/unix/bin/iasl"
9 else
10 ASL_COMPILER="iasl"
13 echo "Using $ASL_COMPILER"
16 # Create and compile the terse (normal) templates just
17 # to ensure that they will emit and compile
19 $ASL_COMPILER -T ALL > /dev/null 2>&1
20 $ASL_COMPILER *.asl > /dev/null 2>&1
22 rm -f *.aml *.asl *.dsl *.log
24 # Create the templates (use verbose mode)
26 $ASL_COMPILER -vt -T ALL > /dev/null 2>&1
28 # Compile the templates
30 $ASL_COMPILER *.asl > /dev/null 2>&1
32 # Disassemble the compiled templates
34 $ASL_COMPILER -d *.aml > /dev/null 2>&1
36 > diff.log
39 # Compare templates to compiled/disassembled templates
41 for f in $files ; do
42 if [ "$f" != "$0" ] && [ "$f" != "Makefile" ]; then
43 sig=`echo $f | awk -F. '{print $1}'`
45 # Ignore differences in the comment/header field
47 diff -pu -I" \*" $sig.asl $sig.dsl >> diff.log
49 done