OSDN Git Service

When updating English.pot file, if there is no change other than POT-Creation-Date...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 16 Mar 2019 04:20:59 +0000 (13:20 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 16 Mar 2019 04:20:59 +0000 (13:20 +0900)
Src/MergeLang.vs2015.vcxproj
Src/MergeLang.vs2017.vcxproj
Src/MergeLang.vs2019.vcxproj

index 4e42010..2eefad1 100644 (file)
@@ -141,7 +141,22 @@ cscript CreateMasterPotFile.vbs
 cscript UpdatePoFilesFromPotFile.vbs
 popd
 </Command>
-      <Outputs>$(ProjectDir)..\Translations\WinMerge\English.pot</Outputs>
+      <Command>pushd ..\Translations\WinMerge
+date /t &gt; MergeLang.lastbuild
+attrib -a English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt 2&gt; NUL
+move English.pot English.pot.prev 2&gt; NUL
+cscript CreateMasterPotFile.vbs
+attrib -a English.pot
+findstr /v POT-Creation-Date English.pot &gt; English.pot.flt
+findstr /v POT-Creation-Date English.pot.prev &gt; 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>
index 610a1b9..dbbc0d8 100644 (file)
@@ -145,7 +145,22 @@ cscript CreateMasterPotFile.vbs
 cscript UpdatePoFilesFromPotFile.vbs
 popd
 </Command>
-      <Outputs>$(ProjectDir)..\Translations\WinMerge\English.pot</Outputs>
+      <Command>pushd ..\Translations\WinMerge
+date /t &gt; MergeLang.lastbuild
+attrib -a English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt 2&gt; NUL
+move English.pot English.pot.prev 2&gt; NUL
+cscript CreateMasterPotFile.vbs
+attrib -a English.pot
+findstr /v POT-Creation-Date English.pot &gt; English.pot.flt
+findstr /v POT-Creation-Date English.pot.prev &gt; 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>
index 5899c36..b91c9fd 100644 (file)
@@ -145,7 +145,22 @@ cscript CreateMasterPotFile.vbs
 cscript UpdatePoFilesFromPotFile.vbs
 popd
 </Command>
-      <Outputs>$(ProjectDir)..\Translations\WinMerge\English.pot</Outputs>
+      <Command>pushd ..\Translations\WinMerge
+date /t &gt; MergeLang.lastbuild
+attrib -a English.pot
+del English.pot.prev English.pot.flt English.pot.prev.flt 2&gt; NUL
+move English.pot English.pot.prev 2&gt; NUL
+cscript CreateMasterPotFile.vbs
+attrib -a English.pot
+findstr /v POT-Creation-Date English.pot &gt; English.pot.flt
+findstr /v POT-Creation-Date English.pot.prev &gt; 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>