source: branches/v2.9/classes/create_cwmm_def.CMD

Last change on this file was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

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