Overview
Comment:Ignores diy make files if the file ${rep}_rep.make.ignore exists, thus allowing user-defined makefiles to use the default MTT rules for languages which they do not override. See odes_rep.make and odeso_rep.make for an example of its use.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 79cd292a169ce5c7e5080bcb96c7fbb2332620235f94ac070703ef84be0f00c6
User & Date: geraint@users.sourceforge.net on 2004-08-11 08:18:07
Other Links: branch diff | manifest | tags
Context
2004-08-11
08:20:59
Provides _odes.gnuplot target in the standard 'mtt sys rep lang' format. check-in: 7aecaeb198 user: geraint@users.sourceforge.net tags: origin/master, trunk
08:18:07
Ignores diy make files if the file ${rep}_rep.make.ignore exists, thus allowing user-defined makefiles to use the default MTT rules for languages which they do not override. See odes_rep.make and odeso_rep.make for an example of its use. check-in: 79cd292a16 user: geraint@users.sourceforge.net tags: origin/master, trunk
07:44:18
Included cmp.m as a prerequisite for abg.m check-in: fb86096442 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [733b36e22b] to [b0aa34de0d].

13
14
15
16
17
18
19



20
21
22
23
24
25
26
# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$



## Revision 1.386  2004/08/05 00:02:57  geraint
## Uses lbl2cmp_txt2m.pl to generate _cmp.m.
##
## Revision 1.385  2004/08/02 20:25:47  geraint
## abg.m requires lbl.txt to allow units to be checked.
##
## Revision 1.384  2004/08/01 20:13:30  geraint







>
>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.387  2004/08/11 07:44:18  geraint
## Included cmp.m as a prerequisite for abg.m
##
## Revision 1.386  2004/08/05 00:02:57  geraint
## Uses lbl2cmp_txt2m.pl to generate _cmp.m.
##
## Revision 1.385  2004/08/02 20:25:47  geraint
## abg.m requires lbl.txt to allow units to be checked.
##
## Revision 1.384  2004/08/01 20:13:30  geraint
2254
2255
2256
2257
2258
2259
2260

2261
2262

2263
2264
2265
2266
2267
2268
2269
	  echo Moving $1_$2
          mv $1_$2 ..
      else
        if [ "$PLOTTYPE" = "multiple" -a -f $1_$2__ARGS.$ps ]; then
          echo Copying  $1_$2$__ARGS.$ps
          cp  $1_$2$__ARGS.$ps ..
        else

          echo Copying  $1$subsystem"_"$2.$lang
          cp  -p -u $1$subsystem"_"$2.$lang ..

        fi
      fi
    fi

   # Remove the MTT_work directory if very tidy
   if [ "$verytidy" = "verytidy" ]; then
    echo Removing all working files







>
|
|
>







2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
	  echo Moving $1_$2
          mv $1_$2 ..
      else
        if [ "$PLOTTYPE" = "multiple" -a -f $1_$2__ARGS.$ps ]; then
          echo Copying  $1_$2$__ARGS.$ps
          cp  $1_$2$__ARGS.$ps ..
        else
	    if [ -f $1$subsystem"_"$2.$lang ]; then
		echo Copying  $1$subsystem"_"$2.$lang
		cp  -p -u $1$subsystem"_"$2.$lang ..
	    fi
        fi
      fi
    fi

   # Remove the MTT_work directory if very tidy
   if [ "$verytidy" = "verytidy" ]; then
    echo Removing all working files
2291
2292
2293
2294
2295
2296
2297

2298
2299
2300
2301
2302
2303
2304
2305
2306
2307

2308
2309
2310
2311
2312
2313
2314
   else
      filename=$1_$2.$3
   fi
    
   #if [ -f "$filename" ]; then
   #   echo $filename exists
   #else

     if [ -n "$Verbose" ]; then
      echo make -s -f $2_rep.make "MTT_SYS=$1" "MTT_LANG=$3" "MTT_ARG=$4" "MTT_OPTS=$mtt_switches" 
     fi
      make -s -f $2_rep.make "MTT_SYS=$1" "MTT_LANG=$3" "MTT_ARG=$4" "MTT_OPTS=$mtt_switches"
      if [ -n "$4" ]; then
         echo Copying  $1_$2$__ARGS.$ps
         cp  $1_$2$__ARGS.$ps ..
      fi
   #fi
    exit

fi

## Check for pre version 4.0 integration method specification.
if [ $level = "0" ]; then
  if [ -f "$1_simpar.txt" ]; then
    method_line=`grep -i METHOD  $1_simpar.txt`
    if [ -n "`echo $method_line | grep -i euler`" ]; then







>
|
|
|
|
|
|
|
|

|
>







2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
   else
      filename=$1_$2.$3
   fi
    
   #if [ -f "$filename" ]; then
   #   echo $filename exists
   #else
   if [ ! -f "$2_rep.make.ignore" ]; then
       if [ -n "$Verbose" ]; then
	   echo make -s -f $2_rep.make "MTT_SYS=$1" "MTT_LANG=$3" "MTT_ARG=$4" "MTT_OPTS=$mtt_switches" 
       fi
       make -s -f $2_rep.make "MTT_SYS=$1" "MTT_LANG=$3" "MTT_ARG=$4" "MTT_OPTS=$mtt_switches"
       if [ -n "$4" ]; then
	   echo Copying  $1_$2$__ARGS.$ps
	   cp  $1_$2$__ARGS.$ps ..
       fi
   #fi
       exit
   fi
fi

## Check for pre version 4.0 integration method specification.
if [ $level = "0" ]; then
  if [ -f "$1_simpar.txt" ]; then
    method_line=`grep -i METHOD  $1_simpar.txt`
    if [ -n "`echo $method_line | grep -i euler`" ]; then


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