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