#! /bin/sed -f # Last edited on 2003-12-20 14:13:18 by hcgl # Convert FROM XXX IMPORT YYY into IMPORT XXX: s/FROM *\([A-Za-z0-9_]*\) *IMPORT[^;]*[;]/IMPORT \1;/g # Break IMPORT into separate lines: /IMPORT/s/, */\ IMPORT /g # Fix Main procedure: s/void *Main(/int main(int argc, char **argv/ /Main()/d # Fix GetOptions procedure: s/GetOptions(/pz_get_options(int argc, char **argv/