1#!/bin/sh 2# ======================================================================== 3# Copyright 1988-2006 University of Washington 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# 12# ======================================================================== 13 14# Program: Driver Linkage Generator 15# 16# Author: Mark Crispin 17# Networks and Distributed Computing 18# Computing & Communications 19# University of Washington 20# Administration Building, AG-44 21# Seattle, WA 98195 22# Internet: MRC@CAC.Washington.EDU 23# 24# Date: 11 October 1989 25# Last Edited: 30 August 2006 26 27 28# Erase old driver linkage 29rm -f linkage.[ch] 30 31# Now define the new list 32for driver 33 do 34 echo "extern DRIVER "$driver"driver;" >> linkage.h 35 echo " mail_link (&"$driver"driver); /* link in the $driver driver */" | cat >> linkage.c 36done 37