Echo Removing non-X functions from 26-bit ALF
libfile -l OSLib:^.o.oslib > <Obey$Dir>.filelist
find "~x\.o\." <Obey$Dir>.filelist > <Obey$Dir>.matches
<Obey$Dir>.Bin.tidyexc <Obey$Dir>.matches > <Obey$Dir>.exclusions
libfile -d OSLib:^.o.oslib -v <Obey$Dir>.exclusions
Echo Removing non-X functions from 32-bit ALF
libfile -l OSLib:^.o.oslib32 > <Obey$Dir>.filelist
find "~x\.o\." <Obey$Dir>.filelist > <Obey$Dir>.matches
<Obey$Dir>.Bin.tidyexc <Obey$Dir>.matches > <Obey$Dir>.exclusions
libfile -d OSLib:^.o.oslib32 -v <Obey$Dir>.exclusions
Delete <Obey$Dir>.filelist
Delete <Obey$Dir>.matches
Delete <Obey$Dir>.exclusions
Echo Stripping headers
<Obey$Dir>.Bin.Every -fm OSLib:oslib.h <Obey$Dir>.Bin.removex %%0
Echo Copying headers from Computer
Copy <OSLib$Dir>.Computer.oslib.h.* <OSLib$Dir>.h.* ~CN~V
Echo Copying headers from Core
Copy <OSLib$Dir>.Core.oslib.h.* <OSLib$Dir>.h.* ~CN~V
Echo Copying headers from User
Copy <OSLib$Dir>.User.oslib.h.* <OSLib$Dir>.h.* ~CN~V
Echo Copying headers from Toolbox
Copy <OSLib$Dir>.Toolbox.oslib.h.* <OSLib$Dir>.h.* ~CN~V
Echo Copying headers from Types
Copy <OSLib$Dir>.Types.oslib.h.* <OSLib$Dir>.h.* ~CN~V
Echo Crunching headers
<Obey$Dir>.Bin.Every -fm OSLib:oslib.h <Obey$Dir>.Bin.CTrim %%0 %%0
Echo Done