Changeset 1590


Ignore:
Timestamp:
Jul 2, 2011, 3:08:02 PM (14 years ago)
Author:
John Small
Message:

Ticket 462: Added new steps to "Wiki updates"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseTool.cmd

    r1588 r1590  
    5252 *    31 May 10 JBS Add support of use of PAGER env. variable to the the pager used.
    5353 *    31 May 10 JBS Build zip file and Hobbes txt file in Warpin directory
     54 *    29 Jun 11 JBS Ticket 462: Fixed bug in NNTP code and standardized version format to x.yy.z
     55 *    02 Jul 11 JBS Ticket 462: Updated Wiki updates instructions per SHL
    5456 *
    5557 * To Do
     
    170172                  prev_user_choice = user_choice
    171173               end
     174            when user_choice = 'G' then
     175               do /* Lead user through configuration */
     176                  call Configuration
     177                  prev_user_choice = user_choice
     178               end
    172179            when user_choice = 'S' then
    173180               do /* Open a command line */
     
    360367            when user_choice = mainmenu.WIKI_updates_num then
    361368               do /* Wiki updates */
    362                   call NotYet user_choice
    363                   say '   Update "WikiStart" with the new version:' ver.full
    364                   say
    365                   say '   Update "RBuild" with the new tag: FM2-' || ver.tag
     369                  call WikiUpdates user_choice
    366370                  prev_user_choice = user_choice
    367371               end
     
    410414         say;say;say
    411415         if user_choice \= 'Q' & ,
     416            user_choice \= 'G' & ,
    412417            user_choice \= 'C' & ,
    413418            user_choice \= mainmenu.Test_WPI_file_num then
     
    780785   cfg.NNTP.0     = 0
    781786   cfg.SMTP.0     = 0
    782    cfg.FTP.keys   = 'HOST USERID PASSWORD DIRECTORY FILE DESCRIPTIVE_HOSTNAME'
     787   cfg.FTP.keys   = 'HOST USERID PASSWORD DIRECTORY FILE DESCRIPTIVE_HOSTNAME COMMAND'
    783788   cfg.NNTP.keys  = 'HOST USERID PASSWORD FROM SIGNATURE NEWSGROUPS'
    784789/*
    785790   cfg.SMTP.keys  = 'HOST USERID PASSWORD FROM SIGNATURE COMMAND UTCOFFSET'
    786791*/
    787    cfg.SMTP.keys  = 'HOST PORT USERID PASSWORD FROM SIGNATURE COMMAND UTCOFFSET'
     792   cfg.SMTP.keys  = 'HOST PORT USERID PASSWORD TO FROM SIGNATURE COMMAND UTCOFFSET'
    788793
    789794   cfg.NNTP.signature_preface     = cfg.crlf || '-- ' || cfg.crlf
     
    889894      end
    890895      say
    891       call charout , 'N)ext C)ommandline '
     896      call charout , 'N)ext C)ommandline cfG) '
    892897      if cmd.smartsvn \= '' then
    893898         call charout , 'S)martSVN '
    894       call charout , 'Q)uit or mennu item number: '
     899      call charout , 'Q)uit or menu item number: '
    895900      user_choice = translate(translate(SysGetKey()), 'N', '0d'x)
    896901      if user_choice = 'N' | ,
     902         user_choice = 'G' | ,
    897903         user_choice = 'C' | ,
    898904         user_choice = 'Q' | ,
     
    982988      say;say
    983989      say 'Data entered:'
    984       say '  Name of releaser  :' name
    985       say '  Email of releaser :' Hobbes.uploader_email_address
    986       say '  OK to list email  :' OKtoListEmail
    987       say '  Zip to be replaced:' replaced_ver_zip
     990      say '  Name of releaser   :' name
     991      say '  Email of releaser  :' Hobbes.uploader_email_address
     992      say '  OK to list email   :' OKtoListEmail
     993      say '  Zip to be replaced :' replaced_ver_zip
    988994      say;say
    989995      call charout , 'OK to proceed with file write? (Y/n) '
     
    21892195      return GetServerReply(socket)
    21902196
     2197WikiUpdates: procedure expose (globals)
     2198   call NotYet arg(1)
     2199   say '1) Add the next version to: http://svn.netlabs.org/fm2/admin/ticket/versions'
     2200   say '2) Make this version the default'
     2201   say '3) Add the next milestone'
     2202   say '4) Make the next milestone the default'
     2203   say '5) Close the old milestone and move residual tickets to the new one.'
     2204   say '6) Update "WikiStart" with the newly released version:' ver.full
     2205   say '7) Update "RBuild" with the new tag: FM2-' || ver.tag
     2206return
     2207
     2208Configuration: procedure expose (globals)
     2209   do until option = 'S' | option = 'Q'
     2210      call SysCls
     2211      say
     2212      say 'ReleaseTool configuration'
     2213      say
     2214      say 'If this is the first time through this configuration, please maake sure all'
     2215      say 'of the following are properly configured for you. Defaults will not work'
     2216      say 'for everyone.'
     2217      say
     2218      say 'With proper configuration, the following activities can be automated:'
     2219      say '   Uploads of files (to Netlabs, Hobbes, etc.).'
     2220      say '   Requesting that Netlabs move the uploaded file.'
     2221      say '   Email notifications of the release (to lists and/or individuals).'
     2222      say '   Newsgroup notifications of the release (to vraious newsgroups).'
     2223      say
     2224      say "Enter the first letter of the activity to configure or..."
     2225      say "'S' to save or 'Q' to quit. ('S' or 'Q' will return you to the main menv)."
     2226      call charout , "Enter 'U', 'R', 'E', 'N', 'S' or 'Q': "
     2227      option = translate(SysGetKey())
     2228      say
     2229      select
     2230         when option = 'S' then
     2231            do
     2232               /* save configuration */
     2233               call SaveConfiguration
     2234            end
     2235         when option = 'Q' then
     2236            do
     2237               /* restore initially read configuration */
     2238               /*
     2239                * if missing or invalid config data, get confirmation
     2240                * before restoring file data.
     2241                */
     2242            end
     2243         when option = 'U' then
     2244            do
     2245               /* configure uploads                    */
     2246               call ConfigureUploads
     2247            end
     2248         when option = 'R' then
     2249            do
     2250               /* configure Netlabs request            */
     2251               call ConfigureNetlabsRequest
     2252            end
     2253         when option = 'E' then
     2254            do
     2255               /* configure (other) email notifications*/
     2256               call ConfigureEmailNotifications
     2257            end
     2258         when option = 'N' then
     2259            do
     2260               /* configure newsgroup  notifications   */
     2261               call ConfigureNewsgroupNotifications
     2262            end
     2263         otherwise
     2264            nop
     2265      end
     2266   end
     2267return
     2268
     2269SaveConfiguration: procedure expose (globals)
     2270return
     2271
     2272ConfigureUploads: procedure expose (globals)
     2273   do until option = 'Q'
     2274      call SysCls
     2275      say
     2276      say 'Configure uploads'
     2277      say
     2278      say 'The following uploads are currently configured:'
     2279      do i = 1 to cfg.FTP.0
     2280         say '   ' || i || ')' cfg.FTP.i.descriptive_hostname
     2281      end
     2282      say
     2283      say 'Enter the number of the upload to configure, or ...'
     2284      say "'A' to add a new upload definition, or ..."
     2285      say "'D' to delete one of these definitions, or ..."
     2286      call charout , "'Q' to return to the previous menu: "
     2287      option = translate(SysGetKey())
     2288      say
     2289      select
     2290         when option = 'Q' then
     2291            nop
     2292         when option = 'A' then
     2293            call AddUpload
     2294         when option = 'D' then
     2295            do
     2296               say
     2297               say 'Enter the number of the upload definition to delete.'
     2298               call charout , '(An invalid entry will cancel the deletion): '
     2299               i = SysGetKey()
     2300               say
     2301               if CheckNum(i, cfg.FTP.0) then
     2302                  do
     2303                     call charout , "Confirm deletion of upload #" || i '(y/N): '
     2304                     if translate(SysGetKey()) = 'Y' then
     2305                        do
     2306                        /* Delete an upload definition here */
     2307                        end
     2308                  end
     2309            end
     2310         when CheckNum(option, cfg.FTP.0) then
     2311            do
     2312               /* Edit an upload here */
     2313               call EditUpload
     2314            end
     2315         otherwise
     2316            nop
     2317      end
     2318   end
     2319return
     2320
     2321CheckNum: procedure
     2322   parse arg num, maxval
     2323   retval = 0
     2324   if datatype(num, 'NUM') then
     2325      if num <= maxval then
     2326         if num > 0 then
     2327            if trunc(num) = num then
     2328               retval = 1
     2329return retval
     2330
     2331AddUpload: procedure expose (globals)
     2332return
     2333
     2334EditUpload: procedure expose (globals)
     2335return
     2336
     2337ConfigureNetlabsRequest: procedure expose (globals)
     2338return
     2339
     2340ConfigureEmailNotifications: procedure expose (globals)
     2341return
     2342
     2343ConfigureNewsgroupNotifications: procedure expose (globals)
     2344return
     2345
Note: See TracChangeset for help on using the changeset viewer.