Artifact bf57433f385be953e431fe7d93d2ebf1b06ce499a28d1b1b278783422fb4ac47:
- Executable file mttroot/mtt/bin/trans/mtt_p2m — part of check-in [98b92713ca] at 1998-08-13 08:35:40 on branch origin/master — extended end of line regexp to include . and # (user: gawthrop@users.sourceforge.net, size: 317) [annotate] [blame] [check-ins using]
#! /bin/sh sed 's/begin//' |\ sed 's/end//' |\ sed 's/\[\([0-9,]*\)\]/(\1)/g' |\ sed 's/:=/ = /' |\ awk '{ sub(/^[\ ]*/, "", $0) sub(/\$$/, ";", $0) if (match($NF,"[;\#\.]$")==0){ Previous[++i] = $0 } else { for (j=1;j<=i;j++) printf("%s", Previous[j]); printf("%s\n", $0) i=0; } }'