cscript UpdatePoFilesFromPotFile.vbs
popd
</Command>
- <Outputs>$(ProjectDir)..\Translations\WinMerge\English.pot</Outputs>
+ <Command>pushd ..\Translations\WinMerge
+date /t > MergeLang.lastbuild
+attrib -a English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt 2> NUL
+move English.pot English.pot.prev 2> NUL
+cscript CreateMasterPotFile.vbs
+attrib -a English.pot
+findstr /v POT-Creation-Date English.pot > English.pot.flt
+findstr /v POT-Creation-Date English.pot.prev > English.pot.prev.flt
+fc English.pot.flt English.pot.prev.flt
+if not errorlevel 1 copy /y English.pot.prev English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt
+cscript UpdatePoFilesFromPotFile.vbs
+popd
+</Command>
+ <Outputs>$(ProjectDir)..\Translations\WinMerge\MergeLang.lastbuild</Outputs>
</CustomBuild>
</ItemGroup>
<ItemGroup>
cscript UpdatePoFilesFromPotFile.vbs
popd
</Command>
- <Outputs>$(ProjectDir)..\Translations\WinMerge\English.pot</Outputs>
+ <Command>pushd ..\Translations\WinMerge
+date /t > MergeLang.lastbuild
+attrib -a English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt 2> NUL
+move English.pot English.pot.prev 2> NUL
+cscript CreateMasterPotFile.vbs
+attrib -a English.pot
+findstr /v POT-Creation-Date English.pot > English.pot.flt
+findstr /v POT-Creation-Date English.pot.prev > English.pot.prev.flt
+fc English.pot.flt English.pot.prev.flt
+if not errorlevel 1 copy /y English.pot.prev English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt
+cscript UpdatePoFilesFromPotFile.vbs
+popd
+</Command>
+ <Outputs>$(ProjectDir)..\Translations\WinMerge\MergeLang.lastbuild</Outputs>
</CustomBuild>
</ItemGroup>
<ItemGroup>
cscript UpdatePoFilesFromPotFile.vbs
popd
</Command>
- <Outputs>$(ProjectDir)..\Translations\WinMerge\English.pot</Outputs>
+ <Command>pushd ..\Translations\WinMerge
+date /t > MergeLang.lastbuild
+attrib -a English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt 2> NUL
+move English.pot English.pot.prev 2> NUL
+cscript CreateMasterPotFile.vbs
+attrib -a English.pot
+findstr /v POT-Creation-Date English.pot > English.pot.flt
+findstr /v POT-Creation-Date English.pot.prev > English.pot.prev.flt
+fc English.pot.flt English.pot.prev.flt
+if not errorlevel 1 copy /y English.pot.prev English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt
+cscript UpdatePoFilesFromPotFile.vbs
+popd
+</Command>
+ <Outputs>$(ProjectDir)..\Translations\WinMerge\MergeLang.lastbuild</Outputs>
</CustomBuild>
</ItemGroup>
<ItemGroup>