1#!/bin/sh
2
3TOPSRCDIR="$1"
4shift
5
6echo "/* Automatically generated -- do not edit! */"
7echo "STRINGTABLE {"
8
9i=0
10cd $TOPSRCDIR
11if [ -d .git ]
12then
13    git-ls-files -c -s --abbrev=10 -- "dlls/*/tests/*.c" |\
14        sed -ne "s|^[0-7]* \([0-9a-f]*\) [0-9]	\(.*\)$|\2:\1|p"
15else
16    for dir in dlls/*/tests; do
17        sed -ne "s|^/\([^.]*.c\)/\([^/]*\).*|$dir/\1:\2|p" $dir/CVS/Entries 2>/dev/null
18    done
19fi |\
20while read line; do
21    echo "REV_INFO+$i \"$line\""
22    i=`expr $i + 1`
23done
24
25echo "}"
26