Commit 910f41b7 authored by Claes Sjofors's avatar Claes Sjofors

Upgrade of ppo3 and ppo5 aggregates

parent e4e9098f
BEGIN {
innum = 0;
inbody = 0;
innumaggr = 0;
inbodyaggr = 0;
pos = 0;
par = "";
}
......@@ -11,6 +13,13 @@ BEGIN {
innum = 1;
inbody = 0;
}
else if ( $3 == "BaseFcPPO5FanAggr" || $3 == "BaseFcPPO3FanAggr" ||
$3 == "BaseFcPPO5PumpAggr" || $3 == "BaseFcPPO3PumpAggr" ||
$3 == "BaseFcPPO5MotorAggr" || $3 == "BaseFcPPO3MotorAggr" ||
$3 == "BaseFcPPO5" || $3 == "BaseFcPPO3") {
innumaggr = 1;
inbodyaggr = 0;
}
if ( innum) {
if ( $1 == "Body" && $2 == "RtBody") {
inbody = 1;
......@@ -51,6 +60,43 @@ BEGIN {
printf( "%s\n", $0);
}
}
if ( innumaggr) {
if ( $1 == "Body" && $2 == "RtBody") {
inbodyaggr = 1;
}
if ( inbodyaggr) {
if ( $1 == "EndBody") {
printf( "%s\n", $0);
innumaggr = 0;
}
else if ( $1 == "EndObject") {
innumaggr = 0;
printf( "%s\n", $0);
}
else if ( $1 == "Attr") {
pos = index($4, "PbModule.I_");
if ( pos == 0)
pos = index($4, "PbModule.O_");
if ( pos != 0) {
a1 = substr( $4, 1, pos - 1);
a2 = substr( $4, pos + 2, length($4) - pos - 1);
# printf( "Attr %sIo%s = %s\n", a1, a2, $4);
$4 = a1 "Io" a2;
printf( " %s\n", $0);
}
else {
printf( "%s\n", $0);
}
}
else {
printf( "%s\n", $0);
}
}
else {
printf( "%s\n", $0);
}
}
else {
printf( "%s\n", $0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment