-pushd Translations
-for %%i in ("%LOCALAPPDATA%\Programs\Python\Python39" "C:\Python39") do (
- if exist "%%~i\python.exe" (
- "%%~i\python.exe" GetTranslationsStatus.py
- )
-)
-popd
-
call Docs\Manual\build_htmlhelp_en.bat
call Docs\Manual\build_htmlhelp_jp.bat
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
+if not errorlevel 1 (
+ copy /y English.pot.prev English.pot
+) else (
+ set POT_UPDATED=true
+)
del English.pot.prev English.pot.flt English.pot.prev.flt
set LIB=
powershell -ExecutionPolicy ByPass -File UpdatePoFilesFromPotFile.ps1
+if "%POT_UPDATED%" == "true" (
+ pushd ..
+ for %%i in ("%LOCALAPPDATA%\Programs\Python\Python39" "C:\Python39") do (
+ if exist "%%~i\python.exe" (
+ "%%~i\python.exe" GetTranslationsStatus.py
+ )
+ )
+ popd
+)
popd
</Command>
<Outputs>$(ProjectDir)..\Translations\WinMerge\MergeLang.lastbuild</Outputs>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
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
+if not errorlevel 1 (
+ copy /y English.pot.prev English.pot
+) else (
+ set POT_UPDATED=true
+)
del English.pot.prev English.pot.flt English.pot.prev.flt
set LIB=
powershell -ExecutionPolicy ByPass -File UpdatePoFilesFromPotFile.ps1
+if "%POT_UPDATED%" == "true" (
+ pushd ..
+ for %%i in ("%LOCALAPPDATA%\Programs\Python\Python39" "C:\Python39") do (
+ if exist "%%~i\python.exe" (
+ "%%~i\python.exe" GetTranslationsStatus.py
+ )
+ )
+ popd
+)
popd
</Command>
<Outputs>$(ProjectDir)..\Translations\WinMerge\MergeLang.lastbuild</Outputs>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
\ No newline at end of file
+</Project>