Changeset 1748


Ignore:
Timestamp:
Feb 28, 2014, 3:48:00 PM (12 years ago)
Author:
John Small
Message:

Ticket #510: Improved handling of cleanup of temporary files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseTool.cmd

    r1735 r1748  
    7171 *    07 Aug 11 JBS Ticket 462: Fix bug in NNTP "To" code
    7272 *    11 Feb 14 JBS Ticket 462: Improved handling of missing cfg file.
     73 *    28 Feb 14 JBS Ticket 510: Improved handling cleaenup of temporary files
    7374 *
    7475 * To Do
     
    486487            server_count = cfg.SMTP.0
    487488            page_title = 'Release announcement'
    488             email.subject = 'File Manager/2 v3.19.1 released'
     489            email.subject = 'File Manager/2' ver.full 'released'
    489490            call SetDefaultAnnouncementText email.body_file
    490491        end
     
    19571958      return
    19581959    end
    1959   body_file = SysTempFilename('NNTPBody.???')
    1960   call SetDefaultAnnouncementText body_file
     1960  nntp_body_file = SysTempFilename('NNTPBody.???')
     1961  call SetDefaultAnnouncementText nntp_body_file
    19611962  cfg.NNTP.subject = 'FM/2' ver.full 'has been released.'
    19621963  _text = '<Standard>'
     
    19881989        when option = 'T' then
    19891990           do
    1990               b4_timestamp = SysGetFileDateTime(body_file)
     1991              b4_timestamp = SysGetFileDateTime(nntp_body_file)
    19911992              say 'The current body of the newsgroup message will now be loaded into an editor.'
    19921993              say 'Make desired changes, if any, and save the file.'
     
    19951996              call SysGetKey
    19961997              say
    1997               call ExecCmd cmd.editor body_file
    1998               if b4_timestamp \= SysGetFileDateTime(body_file) then
     1998              call ExecCmd cmd.editor nntp_body_file
     1999              if b4_timestamp \= SysGetFileDateTime(nntp_body_file) then
    19992000                 _text = '<Modified>'
    20002001           end
     
    21142115                    cfg.NNTP.message_body = cfg.NNTP.message_body || linein(body_file) || cfg.crlf
    21152116                 end
    2116                  call stream body_file, 'c', 'close'
     2117                 call stream nntp_body_file, 'c', 'close'
    21172118                 rcx = SendNNTP(s)
    21182119              end
     
    21222123           rcx = -1 /* User aborted */
    21232124     end
    2124   call SysFileDelete body_file
     2125  call SysFileDelete nntp_body_file
    21252126return rcx
    21262127
Note: See TracChangeset for help on using the changeset viewer.