changed: prepend version string with "date-"
authortheuni <theuni-nospam-@xbmc.org>
Sun, 6 Mar 2011 04:52:13 +0000 (23:52 -0500)
committertheuni <theuni-nospam-@xbmc.org>
Mon, 21 Mar 2011 00:35:25 +0000 (20:35 -0400)
This is the date of the last revision  and _not_ the compile date.
Should help with sorting as well as eyeballing versions.

In addition, the Windows binary has been renamed from XBMCSetup-Rev_[revision]
to XBMCSetup-[date-revision].

Thanks to CrystalP and jcarroll for the Windows help.

addons/skin.confluence/720p/SettingsSystemInfo.xml
configure.in
project/Win32BuildSetup/BuildSetup.bat
project/Win32BuildSetup/XBMC for Windows.nsi
project/Win32BuildSetup/extract_git_rev.bat
project/Win32BuildSetup/readme.txt

index fb04f0f..aee01fb 100644 (file)
                                        <description>XBMC XBE BUILD Version</description>
                                        <posx>750</posx>
                                        <posy>400</posy>
-                                       <width>700</width>
+                                       <width>730</width>
                                        <label>144</label>
                                        <align>right</align>
                                        <textcolor>blue</textcolor>
index 40708f3..dafc704 100644 (file)
@@ -1281,7 +1281,7 @@ else
 fi
 
 if test "$HAVE_GIT" = "yes"; then
-  GIT_REV=$(git rev-parse --short HEAD)
+  GIT_REV=$(git --no-pager log --abbrev=7 -1 --pretty=format:"%h %ci" HEAD | awk '{gsub("-", "");print $2"-"$1}')
 fi
 if test "$GIT_REV" = ""; then
   GIT_REV="Unknown"
index 8cd7ca2..eca35b1 100644 (file)
@@ -212,8 +212,7 @@ IF %comp%==vs2010 (
   call genNsisIncludes.bat
   ECHO ------------------------------------------------------------
   CALL extract_git_rev.bat
-  SET GIT_REV=_%GIT_REV%
-  SET XBMC_SETUPFILE=XBMCSetup-Rev%GIT_REV%-%target%.exe
+  SET XBMC_SETUPFILE=XBMCSetup-%GIT_REV%-%target%.exe
   ECHO Creating installer %XBMC_SETUPFILE%...
   IF EXIST %XBMC_SETUPFILE% del %XBMC_SETUPFILE% > NUL
   rem get path to makensis.exe from registry, first try tab delim
index f9a3c6b..1daa66d 100644 (file)
@@ -15,7 +15,7 @@
 
   ;Name and file
   Name "XBMC"
-  OutFile "XBMCSetup-Rev${xbmc_revision}-${xbmc_target}.exe"
+  OutFile "XBMCSetup-${xbmc_revision}-${xbmc_target}.exe"
 
   XPStyle on
   
index dfd3c08..bc6bbd3 100644 (file)
@@ -26,7 +26,7 @@ GOTO :done
 
 SET oldCurrentDir=%CD%
 CD ..\..
-FOR /F "tokens=1 delims= " %%A IN ('%GITEXE% rev-parse --short HEAD') DO SET GIT_REV=%%A
+FOR /F "tokens=1-4 delims=-" %%A IN ('"%GITEXE% --no-pager log --abbrev=7 -1 --date=short --pretty=format:"%%cd-%%h""') DO SET GIT_REV=%%A%%B%%C-%%D
 CD %oldCurrentDir%
 
 :done
index 6aaa53d..b34af5e 100644 (file)
@@ -8,4 +8,4 @@ Usage:
 1) Run BuildSetup.bat in project\Win32BuildSetup
 2) Watch the screen, maybe you're asked for input
 3) Wait... Wait... Wait...
-You should now have XBMCSetup-Rev<svnrevisionnr>.exe file.
+You should now have XBMCSetup-<lastcommitdate-gitrev>.exe file.