OSDN Git Service

merge original branch.
[tortoisegit/TortoiseGitJp.git] / contrib / other / translation-status / Check_Attrib.bat
1 @echo off\r
2 rem Copyright (C) 2004-2008 the TortoiseSVN team\r
3 rem This file is distributed under the same license as TortoiseSVN\r
4 \r
5 rem Last commit by:\r
6 rem $Author: luebbe $\r
7 rem $Date: 2008-09-29 19:22:31 +0800 (Mon, 29 Sep 2008) $\r
8 rem $Rev: 14138 $\r
9 \r
10 rem Count messages in given PO File that match the given attributes \r
11 SETLOCAL\r
12 FOR /F "usebackq skip=1" %%c IN (`msgattrib %* 2^>nul ^| grep -c msgid`) DO SET /A count=%%c\r
13 rem If count is set, then its always one too high\r
14 if Defined count (\r
15   SET /A count -= 1\r
16 ) else (\r
17   SET count=0\r
18 )\r
19 echo %count%\r
20 ENDLOCAL\r