home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / imap / src / osdep / amiga / mkauths < prev    next >
Text File  |  1998-10-15  |  2KB  |  49 lines

  1. #!/bin/sh
  2. #
  3. # Program:    Authenticator Linkage Generator
  4. #
  5. # Author:    Mark Crispin
  6. #        Networks and Distributed Computing
  7. #        Computing & Communications
  8. #        University of Washington
  9. #        Administration Building, AG-44
  10. #        Seattle, WA  98195
  11. #        Internet: MRC@CAC.Washington.EDU
  12. #
  13. # Date:        5 December 1995
  14. # Last Edited:    15 October 1998
  15. #
  16. # Copyright 1998 by the University of Washington
  17. #
  18. #  Permission to use, copy, modify, and distribute this software and its
  19. # documentation for any purpose and without fee is hereby granted, provided
  20. # that the above copyright notice appears in all copies and that both the
  21. # above copyright notice and this permission notice appear in supporting
  22. # documentation, and that the name of the University of Washington not be
  23. # used in advertising or publicity pertaining to distribution of the software
  24. # without specific, written prior permission.  This software is made
  25. # available "as is", and
  26. # THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  27. # WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  28. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  29. # NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  30. # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  31. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  32. # (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  33. # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  34.  
  35. # Erase old authenticators list
  36. rm -f auths.c
  37. touch auths.c
  38.  
  39. # Now define the new list
  40. for authenticator
  41.  do
  42.   if [ -f Makefile."$authenticator" ]; then
  43.     make -f Makefile."$authenticator" `cat EXTRASPECIALS`
  44.   fi
  45.   echo "extern AUTHENTICATOR auth_"$authenticator";" >> linkage.h
  46.   echo "  auth_link (&auth_"$authenticator");        /* link in the $authenticator authenticator */" | cat >> linkage.c
  47.   echo "#include \"auth_"$authenticator".c\"" >> auths.c
  48. done
  49.