make_progs: Update the directory list in configure.ac too.
[wine] / programs / winetest / maketest
1 #!/bin/sh
2
3 TOPSRCDIR="$1"
4 shift
5
6 echo "/* Automatically generated -- do not edit! */"
7 echo "#include \"resource.h\""
8 echo "STRINGTABLE {"
9
10 i=0
11 for test
12 do
13     echo "$i \"$test\""
14     i=`expr $i + 1`
15 done
16
17 i=0
18 cd $TOPSRCDIR
19 if [ -d .git ]
20 then
21     git-ls-files -c -s --abbrev=10 -- "dlls/*/tests/*.c" |\
22         sed -ne "s|^[0-7]* \([0-9a-f]*\) [0-9]  \(.*\)$|\2:\1|p"
23 else
24     for dir in dlls/*/tests; do
25         sed -ne "s|^/\([^.]*.c\)/\([^/]*\).*|$dir/\1:\2|p" $dir/CVS/Entries 2>/dev/null
26     done
27 fi |\
28 while read line; do
29     echo "REV_INFO+$i \"$line\""
30     i=`expr $i + 1`
31 done
32
33 echo "}"
34
35 i=0
36 for test
37 do
38     echo "$i TESTRES \"$test\""
39     i=`expr $i + 1`
40 done