yuuji@0: #!/bin/sh yuuji@0: # ======================================================================== yuuji@0: # Copyright 1988-2006 University of Washington yuuji@0: # yuuji@0: # Licensed under the Apache License, Version 2.0 (the "License"); yuuji@0: # you may not use this file except in compliance with the License. yuuji@0: # You may obtain a copy of the License at yuuji@0: # yuuji@0: # http://www.apache.org/licenses/LICENSE-2.0 yuuji@0: # yuuji@0: # yuuji@0: # ======================================================================== yuuji@0: yuuji@0: # Program: Driver Linkage Generator yuuji@0: # yuuji@0: # Author: Mark Crispin yuuji@0: # Networks and Distributed Computing yuuji@0: # Computing & Communications yuuji@0: # University of Washington yuuji@0: # Administration Building, AG-44 yuuji@0: # Seattle, WA 98195 yuuji@0: # Internet: MRC@CAC.Washington.EDU yuuji@0: # yuuji@0: # Date: 11 October 1989 yuuji@0: # Last Edited: 30 August 2006 yuuji@0: yuuji@0: yuuji@0: # Erase old driver linkage yuuji@0: rm -f linkage.[ch] yuuji@0: yuuji@0: # Now define the new list yuuji@0: for driver yuuji@0: do yuuji@0: echo "extern DRIVER "$driver"driver;" >> linkage.h yuuji@0: echo " mail_link (&"$driver"driver); /* link in the $driver driver */" | cat >> linkage.c yuuji@0: done