I was looking at the Makefile, and it had some comments asking for
suggestions for how to extract the version numbers of octave.
How about:
majorversion := $(shell mkoctfile --version 2>&1 \
| awk -F '[. ]' '{print $$3}')
minorversion := $(shell mkoctfile --version 2>&1 \
| awk -F '[. ]' '{print $$4}')
microversion := $(shell mkoctfile --version 2>&1 \
| awk -F '[. ]' '{print $$5}')
The backslashes are there only because I can't fit it all on one line
with my email client.
Or:
majorversion := $(word 3,$(shell mkoctfile --version 2>&1 \
| sed 's/\./ /g'))
minorversion := $(word 4,$(shell mkoctfile --version 2>&1 \
| sed 's/\./ /g'))
microversion := $(word 5,$(shell mkoctfile --version 2>&1 \
| sed 's/\./ /g'))
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev