Overview
Comment:Now works out the level correctely
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: dd1498363ae8280f8d7bc4e60cf2d9c513f8381ecc023f5cbf89a648392597a4
User & Date: gawthrop@users.sourceforge.net on 2000-09-14 12:40:45
Other Links: branch diff | manifest | tags
Context
2000-09-14
12:43:46
view of ps s files now uses -sub and -viewlevel options check-in: 1fa40aed0a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:40:45
Now works out the level correctely check-in: dd1498363a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:07:15
Fixed overwriting of ports. check-in: 731218f1f6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_multi from [f11b785f2c] to [ee371ab031].

1
2
3
4
5
6
7
8
9
10

11

12
13
14
15
16
17

18
19
#!/bin/sh

# Does mutiple commands down the hierarchy

command=$1
system=$2
rep=$3
lang=$4
maxlevel=$5


if [ -z "$maxlevel" ]; then

  maxlevel=0;    
fi

ls $2*_$3.$4 |\
awk '{
  level=split($1,foo,"_")-2; 

  if (level<=maxlevel) print command, $0, "&";
'} command=$command maxlevel=$maxlevel








|

>
|
>
|


|

|
>

|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Does mutiple commands down the hierarchy

command=$1
system=$2
rep=$3
lang=$4
relative_level=$5

current_level=`echo $system | awk '{N=split($1,foo,"_"); print N-1}'`

if [ -z "$relative_level" ]; then
  relative_level=0;    
fi

ls $2*_$3.$4  |\
awk '{
  level=split($1,foo,"_")-2;
  maxlevel = current_level +  relative_level;
  if (level<=maxlevel) print command, $0, "&";
'} command=$command relative_level=$relative_level current_level=$current_level


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