11
2+ SETLOCAL ENABLEDELAYEDEXPANSION
3+
24:: --------------------------------------------------------
35:: -- @author frankdevhub@163.com
46:: -- @Date 2019/04/03 Wednesday
57:: -- @description: generate sitemap and robot.txt
68:: --------------------------------------------------------
79
8- set current_log_timestamp = " "
10+ set current_log_timestamp = " "
911:getLocalTimeStamp
1012
11- set date_timestamp_format = %1
12- set time_timestamp_format = %2
13+ set date_timestamp_format = " %1 "
14+ set time_timestamp_format = " %2 "
1315
14- if date_timestamp_format== 1
15- current_log_timestamp=%DATE:~4 ,4 %%DATE:~9 ,2 %%DATE:~12 ,2 %
16+ if date_timestamp_format== 1
17+ current_log_timestamp=%DATE:~4 ,4 %%DATE:~9 ,2 %%DATE:~12 ,2 %
1618
17- if time_timestamp_format== 1
18- current_log_timestamp=%TIME:~0 ,2 %%TIME:~3 ,2 %%TIME:~6 ,2 %
19+ if time_timestamp_format== 1
20+ current_log_timestamp=%TIME:~0 ,2 %%TIME:~3 ,2 %%TIME:~6 ,2 %
1921
20- goto : eof
22+ GOTO : EOF
2123
2224@ echo 'start at call:getLocalTimeStamp 1 -1'
2325
2426:: --------------------------------------------------------
2527:: -- @description: install plugin jekyll-sitemap
2628:: --------------------------------------------------------
2729
28- @ echo off
29- setlocal enabledelayedexpansion
30-
3130
32- jekyll build & echo 'sss'
3331
32+ jekyll build & echo '---------jekyll build complete---------'
3433
3534
35+ echo error
3636
37- & pause
37+ PAUSE
0 commit comments