70be662001-06-19Fredrik Hübinette (Hubbe) #!/bin/sh
a319342003-01-02Henrik Grubbström (Grubba) # Stupid IRIX cpp turns --- into -- -
99a2af2003-08-15Henrik Grubbström (Grubba) sed -e 's/^# \([0-9]* "[^"]*"\).*$/#line \1/;s/^# \([0-9]*\).*$/#line \1/;t : loop
cb398d2003-08-14Henrik Grubbström (Grubba) /OPCODE[0-9]/!b keepnl
99a2af2003-08-15Henrik Grubbström (Grubba) s/ -- \{0,1\}- / ½ /g;t loop h;s/^[^½]*\(OPCODE[0-9][^½]*\) ½.*$/\1¤/p;t more
cb398d2003-08-14Henrik Grubbström (Grubba) N;b loop : more
99a2af2003-08-15Henrik Grubbström (Grubba) g;s/^[^½]*OPCODE[0-9][^½]* ½\(.*\)$/\1/;b loop
cb398d2003-08-14Henrik Grubbström (Grubba) : keepnl
99a2af2003-08-15Henrik Grubbström (Grubba) s/.//g' | sed -e ': loop
af44872003-08-14Henrik Grubbström (Grubba) /¤$/{N;s/¤\n//;b loop
cb398d2003-08-14Henrik Grubbström (Grubba) };/^[ ]*$/{H;d;};/^#line/{h;d;};x;s/^\
a196342003-08-14Henrik Grubbström (Grubba) //;p;s/.//g;x'