Branch: Tag:

2003-08-14

2003-08-14 16:23:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Solaris /bin/sed considers the label name to continue to EOL.

Rev: src/strip_opcodes:1.6

2:      # Stupid IRIX cpp turns --- into -- -   sed -e 's/ -- - / --- /g;s/^# \([0-9]*\)\( "[^"]*"\|\).*$/#line \1\2/;t;: loop - /OPCODE[0-9]/!b keepnl;h;s/^\(\|[^-]\|-[^-]\|--[^-]\)*\(OPCODE[0-9]\(\|[^-]\|-[^-]\|--[^-]\)*\) ---.*$/\2¤/p;t more;N;b loop;: more - g;s/^\(\|[^-]\|-[^-]\|--[^-]\)*\(OPCODE[0-9]\(\|[^-]\|-[^-]\|--[^-]\)*\) ---\(.*\)$/\4/;b loop;: keepnl + /OPCODE[0-9]/!b keepnl + h;s/^\(\|[^-]\|-[^-]\|--[^-]\)*\(OPCODE[0-9]\(\|[^-]\|-[^-]\|--[^-]\)*\) ---.*$/\2¤/p;t more + N;b loop + : more + g;s/^\(\|[^-]\|-[^-]\|--[^-]\)*\(OPCODE[0-9]\(\|[^-]\|-[^-]\|--[^-]\)*\) ---\(.*\)$/\4/;b loop + : keepnl   s/[^\ - ]//g' | sed -e ':loop + ]//g' | sed -e ': loop   /¤$/{N;s/¤\ - //;b loop;};/^[ ]*$/{H;d;};/^#line/{h;d;};x;s/^\ + //;b loop + };/^[ ]*$/{H;d;};/^#line/{h;d;};x;s/^\   //;p;s/.//g;x'