Overview
| Comment: | Now gives immediate warnings |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
fbea007f9ab2b56c4716b629cdee791d |
| User & Date: | gawthrop@users.sourceforge.net on 1998-07-27 20:32:51.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1998-07-27
| ||
| 20:33:17 | Aliases check-in: a983f793cd user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 20:32:51 | Now gives immediate warnings check-in: fbea007f9a user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 20:32:11 | Octave mode forced check-in: 91bb1d0f48 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/mtt_p2c
from [90b198b8c1]
to [29324a34e6].
| ︙ | ︙ | |||
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.1 1998/07/25 16:28:38 peterg ## Initial revision ## ############################################################### # Options info='' while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -I ) | > > > | > | | > > < | < < < | 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 53 54 |
# Copyright (c) P.J.Gawthrop 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2 1998/07/25 16:35:43 peterg
## Sorted out log files etc
##
## 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
p2c -V $1_$2.p | grep Warning # > mtt_p2c.log 2>> mtt_p2c.log
cat $1_$2.log >> mtt_p2c.log
# zap the PASCAL_MAIN which we don't want.
mv $1_$2.c mtt_junk
grep -v 'PASCAL_MAIN' < mtt_junk > $1_$2.c
if [ -n "$info" ]; then
cat mtt_p2c.log
fi
|