octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45659] version function: options and return v


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #45659] version function: options and return values supported by Matlab
Date: Tue, 05 Apr 2016 16:35:53 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #9, bug #45659 (project octave):

Thank you all for your help and support.

The attached patch shows a work in progress without much comments and tests.
Please, let me know if this goes in the correct direction.

As already pointed out, the added functions should reside in files which have
as few dependencies as possible to cause as little rebuilding as necessary.
Thus, I reasoned it would be best to add new files for them right next to
where version.h is.

At the moment, it is necessary to touch build_timestamp.in.h for the hg ID,
build date and time to update. Maybe it is possible to change the makefiles
such that the corresponding files are build each time. They are quite
lightweight and it should not cost too much to build them each time. However,
I do not know what changes would be necessary.

I did not yet research the -java, -blas and -lapack options. But I am looking
forward too hearing feedback on the parts already done.

Here is what Matlab R2012a returns for version:

>> version
ans =
7.14.0.739 (R2012a)
>> version -date
ans =
February 9, 2012
>> version -description
ans =
     ''
>> version -release
ans =
2012a
>> version -java
ans =
Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM
mixed mode
>> version -blas
ans =
Intel(R) Math Kernel Library Version 10.3.5 Product Build 20110720 for
Intel(R) 64 architecture applications
>> version -lapack
ans =
Intel(R) Math Kernel Library Version 10.3.5 Product Build 20110720 for
Intel(R) 64 architecture applications
Linear Algebra PACKage Version 3.3.1
>> [v, d] = version ()
v =
7.14.0.739 (R2012a)
d =
February 9, 2012


Here is what Octave returns for me with the attached patch:

>> version
ans = 4.1.0+ (3b9524234d89+)
>> [v,d,t]=version
v = 4.1.0+ (3b9524234d89+)
d = Apr  5 2016
t = 17:32:05


The plus after the hg id indicates local changes.
Arguments are still ignored.

(file #36841)
    _______________________________________________________

Additional Item Attachment:

File name: version_beta1.patch            Size:7 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45659>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]