[Ttssh2-commit] [3330] ・buildoniguruma .bat/buildzlib. batが更新されていた場合、Makefileを作り直すようにした。

svnno****@sourc***** svnno****@sourc*****
2009年 4月 18日 (土) 22:29:38 JST


Revision: 3330
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3330
Author:   doda
Date:     2009-04-18 22:29:38 +0900 (Sat, 18 Apr 2009)

Log Message:
-----------
・buildoniguruma.bat/buildzlib.batが更新されていた場合、Makefileを作り直すようにした。
・Makefileを作成した場合、ライブラリが既にできていてもビルドし直すようにした。
# Windows2000で正しく動くかは未確認

Modified Paths:
--------------
    trunk/libs/buildoniguruma.bat
    trunk/libs/buildzlib.bat


-------------- next part --------------
Modified: trunk/libs/buildoniguruma.bat
===================================================================
--- trunk/libs/buildoniguruma.bat	2009-04-18 13:23:43 UTC (rev 3329)
+++ trunk/libs/buildoniguruma.bat	2009-04-18 13:29:38 UTC (rev 3330)
@@ -1,7 +1,14 @@
 cd oniguruma
 
-if exist "Makefile" goto build
+if not exist "Makefile" goto mkmf
+for %%F in (Makefile) do set mftime=%%~tF
+for %%F in (..\buildoniguruma.bat) do set battime=%%~tF
+if "%battime%" leq "%mftime%" goto build
 
+del onig_sd.lib
+nmake clean
+
+:mkmf
 copy win32\config.h config.h
 perl -e "open(IN,'win32\Makefile');while(<IN>){s|CFLAGS =|CFLAGS = /MT|;print $_;}close(IN);" > Makefile
 perl -e "open(IN,'win32\Makefile');while(<IN>){s|CFLAGS = -O2|CFLAGS = /MTd -Od|;s|_s.lib|_sd.lib|;print $_;}close(IN);" > Makefile.debug

Modified: trunk/libs/buildzlib.bat
===================================================================
--- trunk/libs/buildzlib.bat	2009-04-18 13:23:43 UTC (rev 3329)
+++ trunk/libs/buildzlib.bat	2009-04-18 13:29:38 UTC (rev 3330)
@@ -1,7 +1,14 @@
 cd zlib
 
-if exist "win32\Makefile.msc.release" goto build
+if not exist "win32\Makefile.msc.release" goto mkmf
+for %%F in (win32\Makefile.msc.release) do set mftime=%%~tF
+for %%F in (..\buildzlib.bat) do set battime=%%~tF
+if "%battime%" leq "%mftime%" goto build
 
+del zlibd.lib
+nmake -f win32\Makefile.msc.release clean
+
+:mkmf
 perl -e "open(IN,'win32\Makefile.msc');while(<IN>){s/ -MD/ -MT/;print $_;}close(IN);" > win32\Makefile.msc.release
 
 perl -e "open(IN,'win32\Makefile.msc');while(<IN>){s/ -MD -O2/ -MTd -Od/;s/ -release/ -debug/;s/ zlib.lib/ zlibd.lib/;s/ zlib.lib/ zlibd.lib/;print $_;}close(IN);" > win32\Makefile.msc.debug



Ttssh2-commit メーリングリストの案内