Commit 40b41182 authored by Alexandre Julliard's avatar Alexandre Julliard

winetest: Portability fix in the maketest script. Added support for git.

parent 55e20a74
......@@ -16,11 +16,17 @@ done
i=0
cd $TOPSRCDIR
for dir in dlls/*/tests; do
sed -ne "s|^/\([^.]*.c\)/\([^/]*\).*|$dir/\1:\2|p" $dir/CVS/Entries 2>/dev/null
done |\
while read; do
echo "REV_INFO+$i \"$REPLY\""
if [ -d .git ]
then
git-ls-files -c -s --abbrev=10 -- "dlls/*/tests/*.c" |\
sed -ne "s|^[0-7]* \([0-9a-f]*\) [0-9] \(.*\)$|\2:\1|p"
else
for dir in dlls/*/tests; do
sed -ne "s|^/\([^.]*.c\)/\([^/]*\).*|$dir/\1:\2|p" $dir/CVS/Entries 2>/dev/null
done
fi |\
while read line; do
echo "REV_INFO+$i \"$line\""
i=`expr $i + 1`
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment