From bug-request at octave dot org Thu Dec 15 05:45:48 2005 Subject: Re: Can I submit a ver.m and license.m? From: William Poetra Yoga Hadisoeseno To: bug at octave dot org Date: Thu, 15 Dec 2005 19:44:07 +0800 On 12/14/05, John W. Eaton wrote: > | + __prodinfo__.Name = "Octave"; > | + __prodinfo__.Version = version (); > | + __prodinfo__.Release = __get_api_ver__ (); > > Instead of this new function, I think we should just add the api > version information directly to the octave_config_info struct. Since > the source of Octave is available, we should not have to do heroic > things like you've done in __get_api_ver__. That's the kind of thing > you do when you are stuck with proprietary software that you can't > change. > Sorry... > | + __prodinfo__.Date = __expand_date__ (""); > > Should Octave include the release date for each version somewhere in > the version info or as a separate variable? > I think the release date should be included in a separate variable (maybe OCTAVE_RELEASE_DATE, and a corresponding entry in octave_config_info). > | + if (exist ("OCTAVE_FORGE_VERSION")) > | + __prodinfo__(2).Name = "octave-forge"; > | + __prodinfo__(2).Version = num2str(OCTAVE_FORGE_VERSION); > | + __prodinfo__(2).Release = num2str(OCTAVE_FORGE_VERSION); > | + __prodinfo__(2).Date = __expand_date__ (num2str (OCTAVE_FORGE_VERSION)); > | + endif > | endif > > Instead of embedding this information in Octave's ver function, maybe > we should provide some mechanism for external packages to register > their version info with Octave? This could be done in the PKG_ADD > file for a package. > Yes, we could do that. Would you like to set a standard for that? I mean, the name of the variable to be used, etc. -- William Poetra Yoga Hadisoeseno ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------