Overview
Comment:Sorted out log files etc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 9cb3ac5c883f91c031f17acef13285f8b0cfb74c3d4d00f0af46778e2306de9f
User & Date: gawthrop@users.sourceforge.net on 1998-07-25 16:35:43
Other Links: branch diff | manifest | tags
Context
1998-07-25
16:59:40
Give other procedures local i,j vars. check-in: 874ad25f70 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:35:43
Sorted out log files etc check-in: 9cb3ac5c88 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:35:12
Incorporated mtt_p2c (uses p2c) check-in: 4611cb58d2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_p2c from [cffc50768b] to [90b198b8c1].

12
13
14
15
16
17
18



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (c) P.J.Gawthrop 1998

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



###############################################################


# Options
info=''
while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in
	-I )
                info=info;;
	*)
		echo "$1 is an invalid argument - ignoring" ;;
  esac
  shift
done

# Inform user
echo Creating $1_$2.c

# Use p2c to do the translation - but zap the PASCAL_MAIN which we don't want. 
p2c -V  $1_$2.p  > mtt_p2c.log 2>/dev/null

mv $1_$2.p mtt_junk
grep -v 'PASCAL_MAIN' < mtt_junk > $1_$2.p

# Info if needed
if [ -n "$info" ]; then
    cat $1_ode2odes.log
else
    rm -f $1_ode2odes.log
fi








>
>
>



















|

|
|








12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1998/07/25 16:28:38  peterg
## Initial revision
##
###############################################################


# Options
info=''
while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in
	-I )
                info=info;;
	*)
		echo "$1 is an invalid argument - ignoring" ;;
  esac
  shift
done

# Inform user
echo Creating $1_$2.c

# Use p2c to do the translation - but zap the PASCAL_MAIN which we don't want. 
p2c -V  $1_$2.p  2>/dev/null

mv $1_$2.c mtt_junk
grep -v 'PASCAL_MAIN' < mtt_junk > $1_$2.c

# Info if needed
if [ -n "$info" ]; then
    cat $1_ode2odes.log
else
    rm -f $1_ode2odes.log
fi


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