- Timestamp:
- Apr 15, 2006, 6:58:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mkspecs/os2-g++/emxexpw.cmd
r8 r87 58 58 Opt.!DefFile = '' 59 59 Opt.!LibName = '' 60 Opt.!LibVersion = '' 60 61 Opt.!DefTemplate = '' 61 62 Opt.!DefMap = '' … … 142 143 call lineout G.!ObjectListFile 143 144 end 145 else 146 G.!ObjectListFile = '' 144 147 145 148 if (Opt.!DefMap == '') then do … … 177 180 call lineout Opt.!DefFile 178 181 179 call SysFileDelete G.!ObjectListFile 180 G.!ObjectListFile = '' 182 if (G.!ObjectListFile \= '') then do 183 call SysFileDelete G.!ObjectListFile 184 G.!ObjectListFile = '' 185 end 181 186 182 187 if (rc \== 0) then … … 209 214 if (rc \== 0) then call Error E_EMXEXPFailed, rc 210 215 211 call SysFileDelete G.!ObjectListFile 212 G.!ObjectListFile = '' 216 if (G.!ObjectListFile \= '') then do 217 call SysFileDelete G.!ObjectListFile 218 G.!ObjectListFile = '' 219 end 213 220 214 221 /* parse the temporary DEF file and combine with G.!Exports */ … … 306 313 if (epos == 0) then do 307 314 str = Replace(str, '${name}', Opt.!LibName) 315 str = Replace(str, '${version}', Opt.!LibVersion) 308 316 call lineout Opt.!DefFile, str 309 317 end … … 323 331 str = linein(Opt.!DefTemplate) 324 332 str = Replace(str, '${name}', Opt.!LibName) 333 str = Replace(str, '${version}', Opt.!LibVersion) 325 334 call lineout Opt.!DefFile, str 326 335 end … … 615 624 Opt.!LibName = G.!opts.i 616 625 end 626 when (o == 'version') then do 627 i = i + 1 628 Opt.!LibVersion = G.!opts.i 629 end 617 630 when (o == 'template') then do 618 631 i = i + 1 … … 666 679 say ' -def <file> : Output DEF file [required]' 667 680 say ' -name <string> : Library name [default: DEF file w/o extension]' 681 say ' -version <string> : Library version [default: none]' 668 682 say ' -template <file> : DEF file template [default: none]' 669 683 say ' -map <file> : Input/output map file [default: none]' … … 692 706 say 693 707 say '- ${name} is replaced with the library name;' 708 say '- ${version} is replaced with the library version;' 694 709 say '- ${exports} is replaced with the list of exported entries.' 695 710
Note:
See TracChangeset
for help on using the changeset viewer.