echo off
del /s/q .\source
rem rmdir /s/q .\source
mkdir .\source
xcopy ..\..\..\js\_M .\source\_M /d /y /i /s /EXCLUDE:backup.exclude.txt
xcopy ..\*.* .\source /y /d
xcopy ..\lib .\source\lib /y /d /s /i /EXCLUDE:backup.exclude.txt
xcopy ..\images .\source\images /y /d /s /i /EXCLUDE:backup.exclude.txt
mkdir .\source\saveImages
echo LOG > .\source\saveImages\lastImages.log
echo LOG > .\source\saveImages\saveImages.log
set D=%DATE:-=% <--- 날짜를 YYYYMMDD 형으로 만들 변수에 저장. 나중에 %D%로 사용
ren source\WP.html e.WP.html
php php\str_replace.php source\e.WP.html "../../js/_M/" _M/ > source\WP.html
del source\e.WP.html
"C:\Program Files\7-Zip\7z.exe" a -xr@backup.exclude.txt .\WebPainter.%D%.7z .\source\* <-- 압축프로그램은 7-zip 사용
copy /y WebPainter.%D%.7z WebPainter.7z <-- 오늘 날짜로 압축파일을 만들고 그 압축파일을 복사해서 대표 압축파일을 만듬.(대표 압축파일은 배포용)
pause