1 | /* */
|
---|
2 | call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
|
---|
3 | call SysLoadFuncs
|
---|
4 |
|
---|
5 | deffile=ARG(1)
|
---|
6 | if ARG(1)="" then deffile="tst.def"
|
---|
7 |
|
---|
8 | theVersion=VALUE("MMCLSVERSION", ,"OS2ENVIRONMENT")
|
---|
9 | if theVersion="" THEN theVersion="0.0.0"
|
---|
10 |
|
---|
11 | /* File defining the DLL exports */
|
---|
12 | exportsfile="EXPORTS.DEF"
|
---|
13 |
|
---|
14 | def="; CWMM.DEF: DEF-file for CWMM.dll"||'0d'x||'0a'x
|
---|
15 | def=def||";"||'0d'x||'0a'x
|
---|
16 | def=def||"; (C) Chris Wohlgemuth 2002-"||WORD(DATE(), 3) ||'0d'x||'0a'x
|
---|
17 | def=def||";/*"||'0d'x||'0a'x
|
---|
18 | def=def||"; * This program is free software; you can redistribute it and/or modify"||'0d'x||'0a'x
|
---|
19 | def=def||"; * it under the terms of the GNU General Public License as published by"||'0d'x||'0a'x
|
---|
20 | def=def||"; * the Free Software Foundation; either version 2, or (at your option)"||'0d'x||'0a'x
|
---|
21 | def=def||"; * any later version."||'0d'x||'0a'x
|
---|
22 | def=def||"; *"||'0d'x||'0a'x
|
---|
23 | def=def||"; * This program is distributed in the hope that it will be useful,"||'0d'x||'0a'x
|
---|
24 | def=def||"; * but WITHOUT ANY WARRANTY; without even the implied warranty of"||'0d'x||'0a'x
|
---|
25 | def=def||"; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"||'0d'x||'0a'x
|
---|
26 | def=def||"; * GNU General Public License for more details."||'0d'x||'0a'x
|
---|
27 | def=def||"; *"||'0d'x||'0a'x
|
---|
28 | def=def||"; * You should have received a copy of the GNU General Public License"||'0d'x||'0a'x
|
---|
29 | def=def||"; * along with this program; see the file COPYING. If not, write to"||'0d'x||'0a'x
|
---|
30 | def=def||"; * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA."||'0d'x||'0a'x
|
---|
31 | def=def||"; */"||'0d'x||'0a'x
|
---|
32 | def=def||";/*"||'0d'x||'0a'x
|
---|
33 | def=def||"; * If you need another license for your project/product contact me at"||'0d'x||'0a'x
|
---|
34 | def=def||"; * "||'0d'x||'0a'x
|
---|
35 | def=def||"; * http://www.os2world.com/cdwriting"||'0d'x||'0a'x
|
---|
36 | def=def||"; * http://www.geocities.com/SiliconValley/Sector/5785/"||'0d'x||'0a'x
|
---|
37 | def=def||"; */"||'0d'x||'0a'x
|
---|
38 |
|
---|
39 | def=def||'0d'x||'0a'x
|
---|
40 |
|
---|
41 | def=def||"LIBRARY CWMM INITGLOBAL"||'0d'x||'0a'x
|
---|
42 | def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth "
|
---|
43 | def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" My ;-) ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@CWMM-classes V"||theVersion||"'"||'0d'x||'0a'x
|
---|
44 |
|
---|
45 |
|
---|
46 |
|
---|
47 | '@type NUL > 'deffile
|
---|
48 | /* Write header */
|
---|
49 | call lineout deffile, def
|
---|
50 | /* Write the exports */
|
---|
51 | DO WHILE LINES(exportsfile)
|
---|
52 | call lineout deffile, LINEIN(exportsfile)
|
---|
53 | END
|
---|
54 | call stream exportsfile, "C", "close"
|
---|
55 | call stream deffile, "C", "close"
|
---|
56 |
|
---|
57 | SAY "New CWMM.DEF created for V"||theVersion||"."
|
---|
58 | exit
|
---|
59 |
|
---|