Overview
Comment:Added dependencies for bond graphs built with dia.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 5080aeba8751ae4ea70b2815021b8ffdcde9d2e06722cd927181d62426a0ffd1
User & Date: geraint@users.sourceforge.net on 2002-12-03 23:28:44
Other Links: branch diff | manifest | tags
Context
2002-12-04
12:22:53
dia2abg.pl now has option abg_file which default to $sys_abg.m
instead of stdout. Made appropriate changes in
abg2cmp_dia2txt and abg_dia2m.

dia usage() now print usage without error message. check-in: 7f738ab7c6 user: david-hoover@users.sourceforge.net tags: origin/master, trunk

2002-12-03
23:28:44
Added dependencies for bond graphs built with dia. check-in: 5080aeba87 user: geraint@users.sourceforge.net tags: origin/master, trunk
23:26:08
Convert _cmp.txt to _sub.sh.
Slightly edited copy of (obsolete) abg2sub_m2sh.
check-in: ac5f400cd0 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [e1422e3b9b] to [08fd45ba17].

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.362  2002/09/19 08:12:53  gawthrop
## Merged version after documentation update
##
## Revision 1.361  2002/09/16 08:08:00  geraint
## Merged changes from global-optimisation branch.
##
## Revision 1.360.2.3  2002/09/16 07:59:26  geraint







>
>
>
>
>
>







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

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.363  2002/11/30 13:39:50  gawthrop
## Split abg2lbl_fig2txt into two parts:
##   abg2cmp_fig2txt
##   cmp2lbl_txt
## and incorporated into mtt
##
## Revision 1.362  2002/09/19 08:12:53  gawthrop
## Merged version after documentation update
##
## Revision 1.361  2002/09/16 08:08:00  geraint
## Merged changes from global-optimisation branch.
##
## Revision 1.360.2.3  2002/09/16 07:59:26  geraint
2327
2328
2329
2330
2331
2332
2333



2334
2335
2336
2337
2338
2339
2340
2341
2342
endif

# Create an arg file if it doesn't exist
$1_args.m:
	touch $1_args.m

#Create list of components



$1_cmp.txt: $1_abg.fig
	abg2cmp_fig2txt $1 

#Create skeleton files (with titles) if not already there
#SUMMARY lbl*	label file (txt)
#SUMMARY lbl	label file (txt)
#SUMMARY lbl*	label file (view)
#SUMMARY lbl	label file (view)
#SUMMARY lbl*	label file (tex)







>
>
>
|
|







2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
endif

# Create an arg file if it doesn't exist
$1_args.m:
	touch $1_args.m

#Create list of components
%_cmp.txt:: %_abg.dia
	abg2cmp_dia2txt \$*

%_cmp.txt: %_abg.fig
	abg2cmp_fig2txt \$* 

#Create skeleton files (with titles) if not already there
#SUMMARY lbl*	label file (txt)
#SUMMARY lbl	label file (txt)
#SUMMARY lbl*	label file (view)
#SUMMARY lbl	label file (view)
#SUMMARY lbl*	label file (tex)
2688
2689
2690
2691
2692
2693
2694




2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712


2713

2714
2715
2716
2717
2718
2719
2720
2721
2722
2723

#Subsystem creation commands
#SUMMARY sub Executable subsystem list (sh)
ifeq ($start_at_abg,yes)
$1_sub.sh: $1_abg.m
	abg2sub_m2sh $1
else




$1_sub.sh: $1_abg.fig
	abg2sub_fig2sh $1
endif

#SUMMARY sub LaTeX subsystem list (tex)
#SUMMARY sub subsystem list (ps)
#SUMMARY sub subsystem list (view)
$1_sub.tex: $1_sub.sh
ifeq ($documenttype,section)
	sub_sh2tex $1
else
	sub_sh2tex -l $1
endif

#SUMMARY abg	acausal bond graph (m)
#Raw bond graph to acausal bond graph: mfile

ifneq ($start_at_abg,yes)


$1_abg.m: $1_rbg.m $1_alias.m $1_cmp.m $1_icd.m

	cmp2sub_m2sh $1
	(sh $1_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null  || exit 1') || exit 1
	rbg2abg_m $info_switch $1
endif

#SUMMARY cbg*	causal bond graph (m)
#Acausal bond graph to causal bond graph: mfile
$1_cbg.m: $1_abg.m
	abg2cbg_m  $info_switch $causality_switch $1








>
>
>
>
|
|
















>
>
|
>
|
|
|







2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739

#Subsystem creation commands
#SUMMARY sub Executable subsystem list (sh)
ifeq ($start_at_abg,yes)
$1_sub.sh: $1_abg.m
	abg2sub_m2sh $1
else
# include .dia as dependency to prevent this rule being used when .fig exists
%_sub.sh: %_cmp.txt %_abg.dia
	cmp2sub_txt2sh \$*

%_sub.sh: %_abg.fig
	abg2sub_fig2sh \$*
endif

#SUMMARY sub LaTeX subsystem list (tex)
#SUMMARY sub subsystem list (ps)
#SUMMARY sub subsystem list (view)
$1_sub.tex: $1_sub.sh
ifeq ($documenttype,section)
	sub_sh2tex $1
else
	sub_sh2tex -l $1
endif

#SUMMARY abg	acausal bond graph (m)
#Raw bond graph to acausal bond graph: mfile

ifneq ($start_at_abg,yes)
%_abg.m: %_abg.dia %_lbl.txt
	abg_dia2m \$*

%_abg.m: %_rbg.m %_alias.m %_cmp.m %_icd.m
	cmp2sub_m2sh \$*
	(sh \$*_sub.sh "mtt $mtt_switches -q -u -l $level+1 " ' abg m null  || exit 1') || exit 1
	rbg2abg_m $info_switch \$*
endif

#SUMMARY cbg*	causal bond graph (m)
#Acausal bond graph to causal bond graph: mfile
$1_cbg.m: $1_abg.m
	abg2cbg_m  $info_switch $causality_switch $1


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