Overview
| Comment: | Now includes the representation title. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
866bcd11d383bd8702fc59650a27a64e |
| User & Date: | gawthrop@users.sourceforge.net on 2000-01-19 17:26:12.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2000-01-26
| ||
| 10:11:10 | Added I component check-in: 594f3299a9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
|
2000-01-19
| ||
| 17:26:12 | Now includes the representation title. check-in: 866bcd11d3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
|
2000-01-18
| ||
| 14:52:02 | Removed recursion --- maybe put back via a flag later check-in: f9259a0645 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/mtt2reps_txt
from [8b5d8284b3]
to [c12b906b4f].
1 2 3 4 5 6 7 8 9 10 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 |
#! /bin/sh
# mtt2reps_txt: Gives a tabular listing of representations and languages
# P J Gawthrop July 1998, October 1998
# Copyright (c) P.J.Gawthrop, 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3 1999/03/08 21:24:43 peterg
## Handles * representations:
##
## rep* is special
## rep shows all possible languages
##
## Revision 1.2 1999/03/08 06:34:07 peterg
## Removed mtt help - replaced by grep #SUMMARY - quicker
##
## Revision 1.1 1998/10/20 08:15:08 peterg
## Initial revision
##
###############################################################
representations=`grep '#SUMMARY' $MTTPATH/mtt | awk '{print $2'} | sort -u `
for rep in $representations ; do
language=`grep '#SUMMARY' $MTTPATH/mtt |\
awk '
{
if (index(rep,"*")==length(rep)){
if ($2==rep) print $NF
}
else
if (($2==rep)||($2==sprintf("%s*",rep))) print $NF
}' rep=$rep |\
sort -u | sed 's/[()]//g'`
| > > > > > > > > > | | | | | | | 1 2 3 4 5 6 7 8 9 10 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 54 55 56 |
#! /bin/sh
# mtt2reps_txt: Gives a tabular listing of representations and languages
# P J Gawthrop July 1998, October 1998
# Copyright (c) P.J.Gawthrop, 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.4 1999/03/09 00:03:06 peterg
## Revisions for xmtt
##
## Revision 1.3 1999/03/08 21:24:43 peterg
## Handles * representations:
##
## rep* is special
## rep shows all possible languages
##
## Revision 1.2 1999/03/08 06:34:07 peterg
## Removed mtt help - replaced by grep #SUMMARY - quicker
##
## Revision 1.1 1998/10/20 08:15:08 peterg
## Initial revision
##
###############################################################
representations=`grep '#SUMMARY' $MTTPATH/mtt | awk '{print $2'} | sort -u `
for rep in $representations ; do
## Title should be same for all languages -- extract from first version
title=`grep '#SUMMARY' $MTTPATH/mtt | grep $rep | head -1 | \
awk '{for (i=3;i<NF;i++) print $i}'`
language=`grep '#SUMMARY' $MTTPATH/mtt |\
awk '
{
if (index(rep,"*")==length(rep)){
if ($2==rep) print $NF
}
else
if (($2==rep)||($2==sprintf("%s*",rep))) print $NF
}' rep=$rep |\
sort -u | sed 's/[()]//g'`
Title='('$title')'
echo $rep $Title "|" $language # |\
# awk '{
# printf( "%s", $1)
# for (i=2;i<=NF;i++) printf("\t%s", $i);
# printf("\n")
# }'
done
|