update dev300-m58
[ooovba.git] / solenv / bin / fix_exp_file.cmd
blobbec416c06e055504239df9ef9f50e829edace97a
1 /* os2 build scripts
3 this script is used to process emxexp results
5 */
7 lmax = 0
8 ordinal = 1
10 do while( lines())
12 l = strip(linein())
13 if POS(';', l) > 0 then l = LEFT(l,POS(';', l)-1)
15 l = strip(translate(l,'','"'))
16 l = strip(l,,X2C(9))
18 /* remove empty lines */
19 if l = '_' then l = ''
21 /* remove component_getDescriptionFunc, since it is already added by tg_def */
22 if l = '_component_getDescriptionFunc' then l = ''
23 if l = '_GetVersionInfo' then l = ''
26 /* remove GLOBAL symbols */
27 if POS('_GLOBAL_', l) > 0 then l = ';'l
29 if POS('!', l) > 0 then l = ';'l
30 if POS('_ZN4_STL', l) > 0 then l = ';'l
31 if POS('_ZNK4_STL', l) > 0 then l = ';'l
32 if POS('ImplClass', l) > 0 then l = ';'l
33 if POS('ImplHelper', l) > 0 then l = ';'l
34 if POS('UsageHelper', l) > 0 then l = ';'l
35 if POS('com3sun4star3', l) > 0 then l = ';'l
37 /* if LENGTH(l) > 254 then l = ';(>254)'left(l,100) */
39 if POS(';', l) > 0 then l = LEFT(l,POS(';', l)-1)
41 IF LENGTH(l)>0 THEN DO
42 say l
43 ordinal = ordinal + 1
44 END
46 if LENGTH(l)>lmax then do
47 lmax = LENGTH(l)
48 smax = l
49 end
51 end
53 say ';lmax='lmax
54 say ';smax='smax