source: trunk/classes/create_cwmm_def.CMD@ 150

Last change on this file since 150 was 148, checked in by gyoung, 19 months ago

Automate building of all def files. Some minor code and makefile cleanup

File size: 2.3 KB
Line 
1/* */
2call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
3call SysLoadFuncs
4
5deffile=strip(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-2005 Netlabs CWMM Team 2023-"||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
32
33def=def||'0d'x||'0a'x
34
35def=def||"LIBRARY CWMM INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
36def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth 2001-2005/Netlabs CWMM Team 2023-"
37def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||" #@##1## "||DATE("E")||" "||TIME("N")||" Zobopeep ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@CWMM-classes V"||theVersion||"'"||'0d'x||'0a'x
38
39
40
41'@type NUL > 'deffile
42/* Write header */
43call lineout deffile, def
44/* Write the exports */
45DO WHILE LINES(exportsfile)
46 call lineout deffile, LINEIN(exportsfile)
47END
48call stream exportsfile, "C", "close"
49call stream deffile, "C", "close"
50
51SAY "New CWMM.DEF created for V"||theVersion||"."
52exit
53
Note: See TracBrowser for help on using the repository browser.