imapext-2007

view src/osdep/os2/drivers.cmd @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* rexx */
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 /*
15 * Program: Authenticator Linkage Generator for OS/2
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 10 June 1999
26 * Last Edited: 30 August 2006
27 */
28 '@echo off'
29 /* Erase old authenticators list */
30 'if exist linkage.h del linkage.h'
31 'if exist linkage.c del linkage.c'
32 parse arg args
33 n=words(args)
34 c_file='linkage.c'
35 h_file='linkage.h'
36 call stream c_file, 'C', 'open write'
37 call stream h_file, 'C', 'open write'
38 do i=1 to n
39 arg=word(args,i)
40 call lineout h_file, 'extern DRIVER 'arg'driver;'
41 call lineout c_file, ' mail_link (&'arg'driver); /* link in the 'arg' driver */'
42 end
43 call stream h_file, 'C', 'close'
44 call stream c_file, 'C', 'close'
45 exit 0

UW-IMAP'd extensions by yuuji