diff options
Diffstat (limited to 'tools/checkwps')
-rwxr-xr-x | tools/checkwps/buildall.sh | 2 | ||||
-rwxr-xr-x | tools/checkwps/cleanall.sh | 2 | ||||
-rw-r--r-- | tools/checkwps/parse_configure.awk | 11 | ||||
-rw-r--r-- | tools/checkwps/targets.txt | 46 |
4 files changed, 13 insertions, 48 deletions
diff --git a/tools/checkwps/buildall.sh b/tools/checkwps/buildall.sh index 9bc937fa56..cb01ad9036 100755 --- a/tools/checkwps/buildall.sh +++ b/tools/checkwps/buildall.sh | |||
@@ -40,7 +40,7 @@ then | |||
40 | exit | 40 | exit |
41 | fi | 41 | fi |
42 | 42 | ||
43 | cat $rootdir/targets.txt | ( | 43 | awk -f $rootdir/parse_configure.awk $rootdir/../configure | ( |
44 | while read target model | 44 | while read target model |
45 | do | 45 | do |
46 | make -j $jobs clean | 46 | make -j $jobs clean |
diff --git a/tools/checkwps/cleanall.sh b/tools/checkwps/cleanall.sh index 19a3aec6fb..4b3c72bd23 100755 --- a/tools/checkwps/cleanall.sh +++ b/tools/checkwps/cleanall.sh | |||
@@ -5,7 +5,7 @@ outdir=$rootdir/output | |||
5 | make clean # make clean the build dir first | 5 | make clean # make clean the build dir first |
6 | rm -f autoconf.h | 6 | rm -f autoconf.h |
7 | rm -f Makefile | 7 | rm -f Makefile |
8 | cat $rootdir/targets.txt | ( | 8 | awk -f $rootdir/parse_configure.awk $rootdir/../configure | ( |
9 | while read target model | 9 | while read target model |
10 | do | 10 | do |
11 | rm -f $outdir/checkwps.$model # then delete any output/checkwps.* | 11 | rm -f $outdir/checkwps.$model # then delete any output/checkwps.* |
diff --git a/tools/checkwps/parse_configure.awk b/tools/checkwps/parse_configure.awk new file mode 100644 index 0000000000..0cb0c0b392 --- /dev/null +++ b/tools/checkwps/parse_configure.awk | |||
@@ -0,0 +1,11 @@ | |||
1 | BEGIN { FS="[|)]" } | ||
2 | |||
3 | /^[ \t]*([0-9]+)\|([^)]+)\)$/ { | ||
4 | model=$2 | ||
5 | } | ||
6 | |||
7 | /^[ \t]*target="[^"]+"$/ { | ||
8 | match($0, "-D[^\"]+") | ||
9 | target=substr($0, RSTART+2, RLENGTH-2) | ||
10 | print target, model | ||
11 | } | ||
diff --git a/tools/checkwps/targets.txt b/tools/checkwps/targets.txt deleted file mode 100644 index 094b49d2c6..0000000000 --- a/tools/checkwps/targets.txt +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | ARCHOS_RECORDER recorder | ||
2 | ARCHOS_FMRECORDER fmrecorder | ||
3 | ARCHOS_RECORDERV2 recorderv2 | ||
4 | ARCHOS_ONDIOSP ondiosp | ||
5 | ARCHOS_ONDIOFM ondiofm | ||
6 | IRIVER_H120 h120 | ||
7 | IRIVER_H300 h300 | ||
8 | IRIVER_H100 h100 | ||
9 | IRIVER_IFP7XX ifp7xx | ||
10 | IRIVER_H10 h10 | ||
11 | IRIVER_H10_5GB h10_5gb | ||
12 | IPOD_COLOR ipodcolor | ||
13 | IPOD_NANO ipodnano | ||
14 | IPOD_NANO2G ipodnano2g | ||
15 | IPOD_VIDEO ipodvideo | ||
16 | IPOD_3G ipod3g | ||
17 | IPOD_4G ipod4g | ||
18 | IPOD_MINI ipodmini | ||
19 | IPOD_MINI2G ipodmini2g | ||
20 | IPOD_1G2G ipod1g2g | ||
21 | IAUDIO_X5 x5 | ||
22 | IAUDIO_M5 m5 | ||
23 | COWON_D2 cowond2 | ||
24 | IAUDIO_M3 m3 | ||
25 | GIGABEAT_F gigabeatf | ||
26 | GIGABEAT_S gigabeats | ||
27 | MROBE_500 mrobe500 | ||
28 | MROBE_100 mrobe100 | ||
29 | LOGIK_DAX logikdax | ||
30 | CREATIVE_ZVM creativezvm30gb | ||
31 | CREATIVE_ZVM60GB creativezvm60gb | ||
32 | CREATIVE_ZV creativezenvision | ||
33 | SANSA_E200 e200 | ||
34 | SANSA_E200 e200v2 | ||
35 | SANSA_E200 e200r | ||
36 | SANSA_C200 c200 | ||
37 | SANSA_M200 m200 | ||
38 | SANSA_C100 c100 | ||
39 | SANSA_FUZE fuze | ||
40 | SANSA_CLIP clip | ||
41 | ELIO_TPJ1022 tpj1022 | ||
42 | ONDA_VX747 ondavx747 | ||
43 | ONDA_VX777 ondavx777 | ||
44 | SAMSUNG_YH820 yh820 | ||
45 | SAMSUNG_YH920 yh920 | ||
46 | SAMSUNG_YH925 yh925 | ||