Add revision number label include to your skins. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Add revision number label include to your skins. (/showthread.php?tid=27892) |
Add revision number label include to your skins. - Nuka1195 - 2007-08-13 If any skinner would like to display the revision number somewhere in your skin. Here is an addition you can add to you skins build.bat. It automatically set's the skins name by the folder name build.bat is in. It grabs the revision number for your skin (not the whole trunk) from .svn\entries. It then creates an include named "Revision" in a include file named revision.xml in the BUILD\skinname\PAL folder. (so make sure you add this code below where you create the build folder) All you need to do is add revision.xml to your includes.xml file and then the label somewhere in your skin, like system info or settings. I added this to a couple scripts thinking it might be helpful. Here is the code: Code: :Begin Here is an example revision.xml: Code: <!-- Xbox-Classic skin revision: 890 - built with build.bat version 1.0 --> Hope it's useful - Nuka1195 - 2007-11-19 Here's an update, <number> tags were not working for me. http://xbmc-scripting.googlecode.com/svn/old/BUILD_SKINXML.zip This formats a full line, it fits good below MPlayer build in SystemInfo. Example revision.xml: PHP Code: <!-- Xbox-Classic skin revision: 986 - built with build.bat version 1.0 --> The $LOCALIZE is using a skins language file "Skin Version:", but you can change that. It automatically puts the skins name version, revision # and date compiled. It's fully automatic, the only change you may need is the call to make the xpr, depending on how you have your media laid out. - Nuka1195 - 2009-08-02 http://xbmc-addons.googlecode.com/svn/packages/BUILD_SKINXML.BAT |