small bug in update_svn_rev.bat
Posted: Sat Jun 01, 2013 10:33 am
Hi , new here but old to xbmx on xbox
I'm currently compiling a virtual appliance to build xbmc4xbox - this will appear somewhere on some
bittorrent site sometime very soon.
in the process I built from a folder on the desktop and "update_svn_rev.bat" failed miserably because some quotes were missing.
Here's a fixed version that I hope someone will put in svn so that this virtaul machine/appliance works out of the box for anyone.
Cheers and thanks for all your efforts.
I'm currently compiling a virtual appliance to build xbmc4xbox - this will appear somewhere on some
bittorrent site sometime very soon.
in the process I built from a folder on the desktop and "update_svn_rev.bat" failed miserably because some quotes were missing.
Here's a fixed version that I hope someone will put in svn so that this virtaul machine/appliance works out of the box for anyone.
Cheers and thanks for all your efforts.
Code: Select all
@echo off
rem subwcrev is included in the tortoise svn client: http://tortoisesvn.net/downloads
SET CWD=%~dp0
SET REV_FILE="%CWD%xbmc\xbox\svn_rev.h"
IF EXIST %REV_FILE% del %REV_FILE%
SET SUBWCREV="?"
IF EXIST "%ProgramFiles(x86)%\TortoiseSVN\bin\subwcrev.exe" SET SUBWCREV="%ProgramFiles(x86)%\TortoiseSVN\bin\subwcrev.exe"
IF EXIST "%ProgramFiles%\TortoiseSVN\bin\subwcrev.exe" SET SUBWCREV="%ProgramFiles%\TortoiseSVN\bin\subwcrev.exe"
IF EXIST "%ProgramW6432%\TortoiseSVN\bin\subwcrev.exe" SET SUBWCREV="%ProgramW6432%\TortoiseSVN\bin\subwcrev.exe"
IF NOT EXIST %SUBWCREV% GOTO SKIPSUBWCREV
%SUBWCREV% "%CWD%xbmc/xbox/svn_rev.tmpl" %REV_FILE% -f
IF NOT EXIST %REV_FILE% %SUBWCREV% %CWD% "%CWD%xbmc\xbox\svn_rev.tmpl" %REV_FILE% -f
:SKIPSUBWCREV
IF NOT EXIST %REV_FILE% copy "%CWD%xbmc\xbox\svn_rev.unknown" %REV_FILE%
SET REV_FILE=
SET SUBWCREV=