On 31 December 2011 07:30, marco atzeri <marco.atz...@gmail.com> wrote: > > the sed pattern to extract octave version > > majorversion := $(shell mkoctfile --version 2>&1 |sed -e 's/^.* > \([0-9]*\)\.\([0-9]*\).\([0-9]*\)$$/\1/g') > minorversion := $(shell mkoctfile --version 2>&1 |sed -e 's/^.* > \([0-9]*\)\.\([0-9]*\).\([0-9]*\)$$/\2/g') > microversion := $(shell mkoctfile --version 2>&1 |sed -e 's/^.* > \([0-9]*\)\.\([0-9]*\).\([0-9]*\)$$/\3/g') > > fails on development due to unexpected "+" > > > $ mkoctfile --version > mkoctfile, version 3.5.91+ > > a two passes sed can handle also this case > > majorversion := $(shell mkoctfile --version 2>&1 | sed -e 's/[ .+]/\n/g' > |sed -n '3p') > minorversion := $(shell mkoctfile --version 2>&1 | sed -e 's/[ .+]/\n/g' > |sed -n '4p') > microversion := $(shell mkoctfile --version 2>&1 | sed -e 's/[ .+]/\n/g' > |sed -n '5p') > > patch attached >
Patch applied. Thank you. Carnë ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev