Overview
Comment:Now uses dir2paths transformation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 73835238465e4a4fcb76d21c8fe5a255a9b9108728eeb0682050b58861878ad2
User & Date: gawthrop@users.sourceforge.net on 1998-03-11 10:32:11
Other Links: branch diff | manifest | tags
Context
1998-03-11
10:32:35
Initial revision check-in: 6a27a298ff user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:32:11
Now uses dir2paths transformation check-in: 7383523846 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-03-09
13:36:00
Cosmetic change check-in: 6c259263e5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dir2rep from [bcbf36eab2] to [c51343aef8].

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

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



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



# Inform user
echo "Creating $1_rep.txt (Directory version)"

# Headings
echo "% Verbal description for directory $1 ($1_rep.txt)"> $1_rep.txt
echo "% Generated by MTT on" `date`. >> $1_rep.txt                  	   

# Create paths for all valid examples - ie dir name is system name
find $1 -name '*_abg.fig' -print | sort |\
  awk '{
   N=split($1,name,"/"); 
   printf("%s", name[1]);
   for (i=2;i<N;i++) printf("/%s", name[i]); 
   printf(" %s %s\n", name[N-1], name[N]);
  }' |\
  awk '{
  correctname=sprintf("%s_abg.fig", $2);
  if ($3==correctname) print "mtt -t -d " $1,$2 " rep tex";
  }' >> $1_rep.txt







>
>
>


|









<
<
<
<
<
<
|
|
<
|

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

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1998/02/05 13:31:25  peterg
## Initial revision
##
###############################################################

dotdot=$2 # Set to ../ if we are in MTT_work

# Inform user
echo "Creating $1_rep.txt (Directory version)"

# Headings
echo "% Verbal description for directory $1 ($1_rep.txt)"> $1_rep.txt
echo "% Generated by MTT on" `date`. >> $1_rep.txt                  	   

# Create paths for all valid examples - ie dir name is system name






dir2paths $1 $2 | \
awk '{

     print "mtt -t -d " $1,$2 " rep tex";
  }' >> $1_rep.txt


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