svnno****@sourc*****
svnno****@sourc*****
2013年 8月 18日 (日) 20:05:50 JST
Revision: 5363 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5363 Author: yutakapon Date: 2013-08-18 20:05:50 +0900 (Sun, 18 Aug 2013) Log Message: ----------- ディレクトリに日付を埋め込む処理が、日本語環境以外でも動作するようにした。 cf. http://logmett.com/forum/viewtopic.php?f=2&t=2338 Modified Paths: -------------- trunk/installer/makearchive.bat -------------- next part -------------- Modified: trunk/installer/makearchive.bat =================================================================== --- trunk/installer/makearchive.bat 2013-08-18 10:50:37 UTC (rev 5362) +++ trunk/installer/makearchive.bat 2013-08-18 11:05:50 UTC (rev 5363) @@ -24,7 +24,8 @@ :snapshot rem for XP or later -set today=snapshot-%date:~0,4%%date:~5,2%%date:~8,2% +for /f "delims=" %%a in ('perl -e "($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $mon++; printf (1900+$year . substr(\"0\".$mon,-2) . substr(\"0\".$mday,-2));"') do @set today=snapshot-%%a + @for /l %%i in (1,1,10) do @( if %%i==1 ( set dst=%today%