cmd.exe: Prevent options to pushd.
[wine] / programs / winetest / maketest
1 #!/bin/sh
2
3 TOPSRCDIR="$1"
4 shift
5
6 echo "/* Automatically generated -- do not edit! */"
7 echo "STRINGTABLE {"
8
9 i=0
10 cd $TOPSRCDIR
11 if [ -d .git ]
12 then
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"
15 else
16     for dir in dlls/*/tests; do
17         sed -ne "s|^/\([^.]*.c\)/\([^/]*\).*|$dir/\1:\2|p" $dir/CVS/Entries 2>/dev/null
18     done
19 fi |\
20 while read line; do
21     echo "REV_INFO+$i \"$line\""
22     i=`expr $i + 1`
23 done
24
25 echo "}"