70be662001-06-19Fredrik Hübinette (Hubbe) #!/bin/sh
a319342003-01-02Henrik Grubbström (Grubba) # Stupid IRIX cpp turns --- into -- -
a196342003-08-14Henrik Grubbström (Grubba) sed -e 's/ -- - / --- /g;s/^# \([0-9]*\)\( "[^"]*"\|\).*$/#line \1\2/;t;: loop
cb398d2003-08-14Henrik Grubbström (Grubba) /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
a196342003-08-14Henrik Grubbström (Grubba) s/[^\
cb398d2003-08-14Henrik Grubbström (Grubba) ]//g' | sed -e ': loop
a196342003-08-14Henrik Grubbström (Grubba) /¤$/{N;s/¤\
cb398d2003-08-14Henrik Grubbström (Grubba) //;b loop };/^[ ]*$/{H;d;};/^#line/{h;d;};x;s/^\
a196342003-08-14Henrik Grubbström (Grubba) //;p;s/.//g;x'