Versioning of CMSimple_XH standard plugins

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!

Versioning of CMSimple_XH standard plugins

Postby cmb » Tue Jul 10, 2012 9:51 pm

Hello Community,

the pluginloader (including page_data) as well as the standard plugins (Meta_tags, Page_params, Filebrowser, tinyMCE, Pagemanager and Jquery) all have their own version numbers (sometimes even several -- one for each file). This is hard to handle, and since most of this components are available only in the CMSimple_XH core distribution (except jQuery4CMSimple and Pagemanager_XH) it seems reasonable to me, to adjust their version number to the according CMSimple_XH version. This could be automated by a small script that has to process the respective files just before a new version will be released.

To have more fine grained information about the actual revision of the files, it might be reasonable to additionally include an SVN $Id$ to all relevant files, which will automatically expand to something like:
Code: Select all
$Id: test.php 4 2012-07-10 21:23:26Z cmb69 $

(4 is the number of the revision in which the file was lastly modified)

What do you think? Any alternative suggestions are welcome!

Christoph
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5566
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany

Re: Versioning of CMSimple_XH standard plugins

Postby svasti » Wed Jul 11, 2012 1:27 pm

cmb wrote:seems reasonable to me, to adjust their version number to the according CMSimple_XH version.
+1
cmb wrote:include an SVN $Id$ to all relevant files
seems to be a workable method. Joomla seems to do the same.
svasti
 
Posts: 694
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany

Re: Versioning of CMSimple_XH standard plugins

Postby cmb » Mon Jul 30, 2012 11:55 pm

I've added the SVN $Id$ to all program files (r229). Furthermore I've changed the version info contained in several files to placeholders ($CMSIMPLE_XH_VERSION$, $CMSIMPLE_XH_BUILD$, $CMSIMPLE_XH_DATE$) (r230), and I've added a small build script (r231).

The build script is meant to be called from a working copy, and will finally create a RELEASE.zip with the version info placeholders replaced and the READMEs moved one folder above. It requires a *nix environment (on Windows cygwin works fine, GnuWin32 probably also). Please note, that the build script yet lacks any error handling, so check the created RELEASE.zip carefully.
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5566
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany

Re: Versioning of CMSimple_XH standard plugins

Postby svasti » Tue Jul 31, 2012 6:33 am

Interesting magic. :geek: I thought we would not only have README.txt-s but also LIESMICH.txt-s for the Germans? And no readme.php any more...
svasti
 
Posts: 694
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany

Re: Versioning of CMSimple_XH standard plugins

Postby cmb » Tue Jul 31, 2012 9:57 am

svasti wrote:I thought we would not only have README.txt-s but also LIESMICH.txt-s for the Germans? And no readme.php any more...

I hope so. But for now the vote is open, so I've set README_FILES="readme.php"; this easily can be changed later.
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5566
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany


Return to Open Development

Who is online

Users browsing this forum: No registered users and 1 guest