Overview
Comment:More messages about Makefile
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a875a0e8cb024daec3f80ed109358ce8d7d3dd2acf8300598bfaa92f3ef2f39c
User & Date: gawthrop@users.sourceforge.net on 1998-04-14 18:17:15.000
Other Links: branch diff | manifest | tags
Context
1998-04-15
18:40:43
Run LateX three times check-in: 6b0ddd3ffb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-04-14
18:17:15
More messages about Makefile check-in: a875a0e8cb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:01:04
Now executes a Makefile (if it exists) check-in: 96fc5283b2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
11
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
# Copyright (c) P.J.Gawthrop, 1996.

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



# Revision 1.2  1997/12/06  14:27:53  peterg
# No changes.
#
## Revision 1.1  1997/08/26 09:06:11  peterg
## Initial revision
##
###############################################################








# Inform user
echo "Creating representations for $1_rep.tex"

# Check for old (2 arg) version and update if necessary
mtt_count=`strip_comments < $1_rep.txt | grep -c 'mtt '`
if [ "$mtt_count" = "0" ]; then
  echo 'Hmm .. seems to be an old format. creating new file'
  echo "Old version saved as $1_rep.txt.SAVE"
  mv $1_rep.txt $1_rep.txt.SAVE
  strip_comments < $1_rep.txt.SAVE |\
  awk '{print "mtt", sys, $1, $2}' sys="$1" >$1_rep.txt
fi

# Execute a make if Makefile exists
if [ -f Makefile ]; then
  echo Executing the Makefile
  make    
fi

# Execute the commands - quietly and untidily!
strip_comments< $1_rep.txt | sed 's/mtt /mtt -q -u /' | tee -a JUNK  | sh

echo "Done creating representations for $1_rep.tex"








>
>
>







|
>
>
>
>
>
>














<
<
<
<
<
<





11
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
# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3  1998/04/14 18:01:04  peterg
## Now executes a Makefile (if it exists)
##
# Revision 1.2  1997/12/06  14:27:53  peterg
# No changes.
#
## Revision 1.1  1997/08/26 09:06:11  peterg
## Initial revision
##
###############################################################
# Execute a make if Makefile exists
if [ -f Makefile ]; then
  echo Executing the Makefile
  make    
  echo Done executing the Makefile
  echo
fi

# Inform user
echo "Creating representations for $1_rep.tex"

# Check for old (2 arg) version and update if necessary
mtt_count=`strip_comments < $1_rep.txt | grep -c 'mtt '`
if [ "$mtt_count" = "0" ]; then
  echo 'Hmm .. seems to be an old format. creating new file'
  echo "Old version saved as $1_rep.txt.SAVE"
  mv $1_rep.txt $1_rep.txt.SAVE
  strip_comments < $1_rep.txt.SAVE |\
  awk '{print "mtt", sys, $1, $2}' sys="$1" >$1_rep.txt
fi







# Execute the commands - quietly and untidily!
strip_comments< $1_rep.txt | sed 's/mtt /mtt -q -u /' | tee -a JUNK  | sh

echo "Done creating representations for $1_rep.tex"


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