2006-12-26, 06:28
hey folks. I have been generating my own changelog.txt for my builds for a while now, but since I was bored today I decided to write up a scheduled batch for it.
I will be hosting a changelog.txt HERE.
For those who are interested, here's the batch I have scheduled to run twice a day:
everything before the "cd svn" part is to set the current year, month, and day as batch variables. The next step goes to my local copy of the XBMC source code (in a folder named SVN) and updates it. then I run an SVN log query which lists all the changes from between today's date and June 1st, 2006 (basically 6 months ago), then I run the changelog tool to convert it from XML into TXT and finally, upload it to my server and then delete the files.
I will be hosting a changelog.txt HERE.
For those who are interested, here's the batch I have scheduled to run twice a day:
Code:
@echo off
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
SET /A DD= %DD% + 1
cd svn
svn update
cd ..
svn log SVN --xml -r {%yyyy%-%mm%-%dd%}:{2006-06-01}>>Changelog.xml
changelog.exe changelog.xml changelog.txt
del "%CD%\changelog.xml" /Q
ftp -s:ftp.txt
del "%CD%\changelog.txt" /Q
everything before the "cd svn" part is to set the current year, month, and day as batch variables. The next step goes to my local copy of the XBMC source code (in a folder named SVN) and updates it. then I run an SVN log query which lists all the changes from between today's date and June 1st, 2006 (basically 6 months ago), then I run the changelog tool to convert it from XML into TXT and finally, upload it to my server and then delete the files.