12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Copyright (c) P.J.Gawthrop 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.11 2001/03/29 19:24:14 gawthrop
## Can now use c representations of crs when using -c option
##
## Revision 1.10 2000/09/15 09:01:41 peterg
## Updated internal comments
##
## Revision 1.9 2000/05/16 18:56:58 peterg
|
>
>
>
>
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright (c) P.J.Gawthrop 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.12 2001/04/11 07:36:10 gawthrop
## Now uses system_cr.h in place of system.h in .c rep -
## compatible with older code
##
## Revision 1.11 2001/03/29 19:24:14 gawthrop
## Can now use c representations of crs when using -c option
##
## Revision 1.10 2000/09/15 09:01:41 peterg
## Updated internal comments
##
## Revision 1.9 2000/05/16 18:56:58 peterg
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
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
p2c -V $1_$2.p | grep Warning # > mtt_p2c.log 2>> mtt_p2c.log
cat $1_$2.log >> mtt_p2c.log
|
>
>
>
>
>
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
info=info;
;;
*)
echo "$1 is an invalid argument - ignoring" ;;
esac
shift
done
## Create p2crc with various configs.
cat > p2crc <<EOF
EatNotes [221] # No warning messages about symbols
EOF
# Inform user
echo Creating $1_$2.c
# Use p2c to do the translation
p2c -V $1_$2.p | grep Warning # > mtt_p2c.log 2>> mtt_p2c.log
cat $1_$2.log >> mtt_p2c.log
|