Changeset 1590
- Timestamp:
- Jul 2, 2011, 3:08:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseTool.cmd
r1588 r1590 52 52 * 31 May 10 JBS Add support of use of PAGER env. variable to the the pager used. 53 53 * 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 54 56 * 55 57 * To Do … … 170 172 prev_user_choice = user_choice 171 173 end 174 when user_choice = 'G' then 175 do /* Lead user through configuration */ 176 call Configuration 177 prev_user_choice = user_choice 178 end 172 179 when user_choice = 'S' then 173 180 do /* Open a command line */ … … 360 367 when user_choice = mainmenu.WIKI_updates_num then 361 368 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 366 370 prev_user_choice = user_choice 367 371 end … … 410 414 say;say;say 411 415 if user_choice \= 'Q' & , 416 user_choice \= 'G' & , 412 417 user_choice \= 'C' & , 413 418 user_choice \= mainmenu.Test_WPI_file_num then … … 780 785 cfg.NNTP.0 = 0 781 786 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' 783 788 cfg.NNTP.keys = 'HOST USERID PASSWORD FROM SIGNATURE NEWSGROUPS' 784 789 /* 785 790 cfg.SMTP.keys = 'HOST USERID PASSWORD FROM SIGNATURE COMMAND UTCOFFSET' 786 791 */ 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' 788 793 789 794 cfg.NNTP.signature_preface = cfg.crlf || '-- ' || cfg.crlf … … 889 894 end 890 895 say 891 call charout , 'N)ext C)ommandline '896 call charout , 'N)ext C)ommandline cfG) ' 892 897 if cmd.smartsvn \= '' then 893 898 call charout , 'S)martSVN ' 894 call charout , 'Q)uit or men nu item number: '899 call charout , 'Q)uit or menu item number: ' 895 900 user_choice = translate(translate(SysGetKey()), 'N', '0d'x) 896 901 if user_choice = 'N' | , 902 user_choice = 'G' | , 897 903 user_choice = 'C' | , 898 904 user_choice = 'Q' | , … … 982 988 say;say 983 989 say 'Data entered:' 984 say ' Name of releaser :' name985 say ' Email of releaser :' Hobbes.uploader_email_address986 say ' OK to list email :' OKtoListEmail987 say ' Zip to be replaced :' replaced_ver_zip990 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 988 994 say;say 989 995 call charout , 'OK to proceed with file write? (Y/n) ' … … 2189 2195 return GetServerReply(socket) 2190 2196 2197 WikiUpdates: 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 2206 return 2207 2208 Configuration: 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 2267 return 2268 2269 SaveConfiguration: procedure expose (globals) 2270 return 2271 2272 ConfigureUploads: 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 2319 return 2320 2321 CheckNum: 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 2329 return retval 2330 2331 AddUpload: procedure expose (globals) 2332 return 2333 2334 EditUpload: procedure expose (globals) 2335 return 2336 2337 ConfigureNetlabsRequest: procedure expose (globals) 2338 return 2339 2340 ConfigureEmailNotifications: procedure expose (globals) 2341 return 2342 2343 ConfigureNewsgroupNotifications: procedure expose (globals) 2344 return 2345
Note:
See TracChangeset
for help on using the changeset viewer.