Changeset 607
- Timestamp:
- Apr 19, 2007, 12:39:21 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/warpin/bld_fm2_wpi.cmd (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/warpin/bld_fm2_wpi.cmd
r602 r607 71 71 /* Add the files to the WPI */ 72 72 do 73 /* 73 74 if stream(WPI.archivename, 'c', 'query exists') \= '' then 74 75 if archive_previous_WPI == 1 then … … 76 77 else 77 78 'del 'WPI.archivename 79 */ 78 80 do p = 1 to WPI.pkg.0 79 81 call SysFileTree WPI.pkg.p.dir || '\*', 'pkgfilelist.', 'FOS' … … 86 88 end 87 89 if delete_files_afterwards = 1 then 88 do pkgnum = 1 to WPI.pkg.0 89 call EmptyDir WPI.pkg.pkgnum.dir 90 end 91 end 92 93 /* Add the script file to the WPI */ 94 /* 95 'eautil 'WPI.scriptname' NUL /s' 96 */ 97 WPI.WIC_pgm WPI.archivename' -s 'WPI.scriptname 98 if rc \= 0 then 99 call ErrorExit 4 rc 90 call clean_wpidirs 91 end 92 do 93 /* Add the script file to the WPI */ 94 /* 95 'eautil 'WPI.scriptname' NUL /s' 96 */ 97 WPI.WIC_pgm WPI.archivename' -s 'WPI.scriptname 98 if rc \= 0 then 99 call ErrorExit 4 rc 100 end 100 101 101 102 /* … … 139 140 WPI.retval = 0 140 141 WPI.scriptonly = 0 141 /*142 parse arg WPI.archivename WPI.scriptname .143 if WPI.archivename == '' then144 WPI.archivename = WPI.default_archivename145 if WPI.scriptname == '' then146 WPI.scriptname = left(WPI.archivename, length(WPI.archivename) - 3) || 'wis'147 */148 142 WPI.archivename = WPI.default_archivename 149 143 WPI.scriptname = left(WPI.archivename, length(WPI.archivename) - 3) || 'wis' … … 177 171 178 172 ext_libpath = SysQueryExtLibpath('B') 179 if pos( Warpin_pathentry, ';' || translate( SysQueryExtLibpath('B')) || ';' ) == 0 then180 call SysSetExtLibpath Warpin_ pathentry|| ';' || ext_libpath, 'B'173 if pos( Warpin_pathentry, ';' || translate(ext_libpath) || ';' ) == 0 then 174 call SysSetExtLibpath Warpin_Path || ';' || ext_libpath, 'B' 181 175 182 176 parse source . . thispgm … … 199 193 return 200 194 */ 201 202 Emptydir: procedure203 parse arg dir204 call SysFileTree dir'\*', 'dirs.', 'DO'205 do i = 1 to dirs.0206 call EmptyDir dirs.i207 end208 call SysFileTree dir'\*', 'files.', 'FO'209 do i = 1 to files.0210 '@attrib -r -s -h 'files.i' >NUL 2>NUL'211 '@del 'files.i' >NUL 2>NUL'212 end213 '@rd 'dir214 return215 195 216 196 novalue:
Note:
See TracChangeset
for help on using the changeset viewer.
