here's a batch file i wrote to easily obtain a working installation with all the latest files in the right places, and to keep your own custom config .xml's in tune with the latest .xml parameter changes. after you set it up everything is about completely automatic.
basic idea: create a folder containing
-
xbmc cvs folder
-
config folder containing your personalized my_*.xml (so
my_keymap.xml, etc) and backups of the last versions of the non-modified xml files, filenames _ prepended:
_keymap.xml etc. (first time just copy them straight from the xbmc folder)
-
win32codecs folder containing the extracted mplayer codecs
-
extraskins folder containing any extra skins you may have (so excluding mediacenter)
now, compile xbmc and run the batchfile below (adjusting lines 2-4 to your setup). if any .xml config file has changed, your diffing program will pop up to show you what changed in the cvs, as well as your editor with your corresponding customized .xml so you can edit it to correct it for any important changes.
after you're finished and closed both, press any key to check the other .xml files or start creating the
xbmcupload folder containing the complete installation.
if you have any questions let me know. if you don't know which differ you should choose- i like
winmerge myself, but there's also one included in vs (not installed by default i believe)
Quote:@echo off
set editor="c:\seteditorpathandnamehere"
set differ="c:\setdifferpathandnamehere"
set unrar="c:\program files\winrar\unrar.exe"
fc config\_keymap.xml xbmc\keymap.xml > nul
if %errorlevel%==0 goto nokeychange
start "" %differ% config\_keymap.xml xbmc\keymap.xml
start "" %editor% config\my_keymap.xml
pause
copy /y xbmc\keymap.xml config\_keymap.xml
:nokeychange
fc config\_xboxmediacenter.xml xbmc\xboxmediacenter.xml > nul
if %errorlevel%==0 goto noxbmcchange
start "" %differ% config\_xboxmediacenter.xml xbmc\xboxmediacenter.xml
start "" %editor% config\my_xboxmediacenter.xml
pause
copy /y xbmc\xboxmediacenter.xml config\_xboxmediacenter.xml
:noxbmcchange
fc "config\_filezilla server.xml" "xbmc\filezilla server.xml" > nul
if %errorlevel%==0 goto nofzschange
start "" %differ% "config\_filezilla server.xml" "xbmc\filezilla server.xml"
start "" %editor% "config\my_filezilla server.xml"
pause
copy /y "xbmc\filezilla server.xml" "config\_filezilla server.xml"
:nofzschange
rd /s /q xbmcupload
md xbmcupload
copy xbmc\release\default.xbe xbmcupload
copy config\my_xboxmediacenter.xml xbmcupload\xboxmediacenter.xml
copy config\my_keymap.xml xbmcupload\keymap.xml
copy "config\my_filezilla server.xml" "xbmcupload\filezilla server.xml"
xcopy /i /e xbmc\mplayer xbmcupload\mplayer
xcopy /i /e xbmc\skin xbmcupload\skin
xcopy /i /e xbmc\language xbmcupload\language
xcopy /i /e xbmc\weather xbmcupload\weather
xcopy /i /e xbmc\xbmc\keyboard\media xbmcupload\media
xcopy /i /e xbmc\visualisations xbmcupload\visualisations
%unrar% x xbmc\python\python.rar xbmcupload\python\
%unrar% x xbmc\web\xbmc.rar xbmcupload\web\
rem %unrar% x xbmc\scripts\scripts.rar xbmcupload\scripts\
xcopy /i /e win32codecs xbmcupload\mplayer\codecs
xcopy /i /e extraskins\* xbmcupload\skin
enjoy,
ezd