svnno****@sourc*****
svnno****@sourc*****
2016年 2月 23日 (火) 03:15:40 JST
Revision: 6315 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6315 Author: doda Date: 2016-02-23 03:15:40 +0900 (Tue, 23 Feb 2016) Log Message: ----------- VSINSTALLDIRの最後が \ の場合に対応 Modified Paths: -------------- trunk/installer/build.bat -------------- next part -------------- Modified: trunk/installer/build.bat =================================================================== --- trunk/installer/build.bat 2016-02-22 14:53:06 UTC (rev 6314) +++ trunk/installer/build.bat 2016-02-22 18:15:40 UTC (rev 6315) @@ -1,13 +1,12 @@ rem Visual Studio\x82̃o\x81[\x83W\x83\x87\x83\x93\x94\xBB\x95\xCA -set TMPVAL="" -FOR /F "delims=" %%H IN ("%VSINSTALLDIR%") DO FOR /F "tokens=3,4 delims=. " %%I IN ("%%~nH") DO set TMPVAL="%%I %%J" -if %TMPVAL% == "Studio 8" goto vs2005 -if %TMPVAL% == "Studio 9" goto vs2008 -if %TMPVAL% == "Studio 10" goto vs2010 -if %TMPVAL% == "Studio 11" goto vs2012 -if %TMPVAL% == "Studio 12" goto vs2013 -if %TMPVAL% == "Studio 14" goto vs2015 +FOR /F "tokens=1,2 delims=\. " %%H IN ("%VSINSTALLDIR:*Visual Studio =Studio %") DO set VSVERSTR="%%H %%I" +if %VSVERSTR% == "Studio 8" goto vs2005 +if %VSVERSTR% == "Studio 9" goto vs2008 +if %VSVERSTR% == "Studio 10" goto vs2010 +if %VSVERSTR% == "Studio 11" goto vs2012 +if %VSVERSTR% == "Studio 12" goto vs2013 +if %VSVERSTR% == "Studio 14" goto vs2015 rem \x8A\xFA\x91Ғʂ\xE8\x82ɓ\xAE\x82\xA9\x82Ȃ\xA9\x82\xC1\x82\xBD\x8Fꍇ\x82ׁ̈A\x8B\x8C\x94\xBB\x92\xE8\x8F\xF0\x8C\x8F\x82\xE0\x8Ec\x82\xB5\x82Ă\xA8\x82\xAD echo %VSINSTALLDIR% | find "Studio 8"