Overview
Comment:Improved determination of Octave version.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 429028f25c952d06fa8ba063cf080ed39f054a902a679828b8d9cbe067448594
User & Date: geraint@users.sourceforge.net on 2001-03-27 01:14:27
Other Links: branch diff | manifest | tags
Context
2001-03-27
13:10:23
Improved determination of Octave version. check-in: 241ec66090 user: geraint@users.sourceforge.net tags: origin/master, trunk
01:14:27
Improved determination of Octave version. check-in: 429028f25c user: geraint@users.sourceforge.net tags: origin/master, trunk
01:07:34
Improved determination of Octave version for ode2odes.exe creation.
Removed FORCE check_update of .txts.
check-in: 7a9336d9cb user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/make_ode2odes from [c175247979] to [34aabe5863].

1
2
3
4
5
6
7
8
9
10
11



12
13
14
15
16
17
18
#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
    ######################################

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.52  2001/03/19 02:28:52  geraint
## Branch merge: merging-ode2odes-exe back to MAIN.
##
## Revision 1.51.2.7  2001/03/17 09:51:07  geraint
## Implemented Runge-Kutta IV fixed-step method (-i rk4).
##
## Revision 1.51.2.6  2001/03/16 03:56:13  geraint











>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
    ######################################

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.53  2001/03/21 03:24:59  geraint
## Calculate inputs before outputs (.cc).
##
## Revision 1.52  2001/03/19 02:28:52  geraint
## Branch merge: merging-ode2odes-exe back to MAIN.
##
## Revision 1.51.2.7  2001/03/17 09:51:07  geraint
## Implemented Runge-Kutta IV fixed-step method (-i rk4).
##
## Revision 1.51.2.6  2001/03/16 03:56:13  geraint
309
310
311
312
313
314
315
316




317
318
319
320


321
322
323


324
325
326
327
328
329
330

EOF
} # make_m

make_cc() 
{
# get octave version
octave_development=`octave --version | awk '{print $4}' | awk -F\. '{print $2}'`




if [ $octave_development ]; then
    vector_value=column_vector_value
    feval_header=parse.h
else


    vector_value=vector_value
    feval_header=toplev.h
fi



cat <<EOF  > $filename
#include <octave/oct.h>
#include <octave/ov-struct.h>
#include <octave/load-save.h>
#include <octave/lo-mappers.h>
#include <octave/variables.h>







|
>
>
>
>
|
|
|
<
>
>
|
|
<
>
>







312
313
314
315
316
317
318
319
320
321
322
323
324
325
326

327
328
329
330

331
332
333
334
335
336
337
338
339

EOF
} # make_m

make_cc() 
{
# get octave version
case `$MATRIX --version | awk -F\. '{print $2}'` in
    0) # stable
	vector_value=vector_value
	feval_header=toplev.h
	;;
    1) # development
	vector_value=column_vector_value
	feval_header=parse.h

	;;
    *)
	vector_value=column_vector_value
	feval_header=parse.h

	;;
esac

cat <<EOF  > $filename
#include <octave/oct.h>
#include <octave/ov-struct.h>
#include <octave/load-save.h>
#include <octave/lo-mappers.h>
#include <octave/variables.h>


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]