1 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
3 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
5 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
7 * choose.cc (paint): Modify message for nothing to download vs
8 nothing to install/update based on installation method.
9 (list_click): Modify to skip versions in selection process if
10 installing from local directory and installation file does not exist.
11 Also leaves Source Action set to N/A if the source file does not exist
12 and installing from local directory.
13 (check_existence): New method to check current existence of installation
14 files based on selected installation method.
15 (set_existence): New method to set the current existence of installation
16 files based on selected installation method.
17 (best_trust): Modify decision process for best trust to base decision on
18 current trust selected (IE: Prev, Curr, or Test), existence of file and
19 installation method selected.
20 (default_trust): Add logic to capture the current trust level and the
21 trust selected for the given package.
22 (set_full_list): Expand decision criteria for displaying a package in
23 the selection list to include file existence/non-existence and selected
25 (build_labels): Modify criteria for label addition to include
26 installation method and file existence/non-existence.
27 (create_listview): Modify to establish package trust level for each
28 package before setting up the display list. Also modification to set
29 current trust button as the default.
30 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
31 a reset of the selection list in addition to setting the default trust.
32 (get_package_version): New method to provide reusable code for
33 determining the package version from the file name for a specified
35 (scan2): Modify to use new method get_package_version and
36 also enhance handling of the build for the structures package and
38 (read_installed_db): Modify to use the new method
39 get_package_version and also enhance handling of the build for the
40 structures package and extra.
41 (do_choose): Add additional initialization of package and extra
42 structures. Modify to use read_installed_db all the time despite
43 install method. Modify output to setup.log.full log file to increase
44 readability by adding additional spacing, expanded code and available
46 * ini.h: Add new fields install_exists, source_exists and
47 partial_list_display to the structure definition for package.
48 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
49 pushbuttons by replacing with Radio Buttons thus allowing the
50 operator to better determine which is selected.
52 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
54 * download.cc (do_download): Add new variables total_download_bytes and
55 total_download_bytes_sofar for download progress meter. Add loop
56 to accumulate the total bytes to download from the selected packages.
57 * geturl.cc: Add state.h and diskfull.h to include list. Add new
58 variables gw_iprogress, gw_pprogress, gw_progress_text,
59 gw_pprogress_text, and gw_iprogress_text to allow for addition of
60 total packages download progress meter and disk full percent
61 progress meter. Add variables total_download_bytes and
62 total_download_bytes_sofar for use by progress meters.
63 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
64 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
65 allow for addition of total packages download progress meter and disk
66 full percent progress meter.
69 (get_url_to_file): Ditto.
70 * geturl.h: Add external definition for total_download_bytes and
71 total_download_bytes_sofar.
72 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
73 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
74 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
76 * resource.h: Add new fields for progress meters and text and update
77 _APS_NEXT_CONTROL_VALUE.
79 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
81 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
84 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
86 * download.cc (download_one): Add missing parenthesis.
88 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
90 * download.cc (get_file_size): New function. Eliminates the need
92 (download_one): Call `get_file_size' instead of `stat'. This
93 workarounds a problem with mingw's `stat' call.
95 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
97 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
98 This is to allow cinstall to build with 2.95.2-7 and to make the
99 use of headers consistent.
101 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
103 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
105 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
107 * winsup/cinstall/res.rc: Added accelerators and improved focus
110 2000-12-10 Egor Duda <deo@logos-m.ru>
112 * choose.cc (paint): Use system background color for text output.
114 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
116 * Makefile.in: Use CXX for linking and for compiling .cc files.
117 * configure.in: Find correct c++ compiler.
118 * configure: Regenerate.
120 2000-11-17 DJ Delorie <dj@redhat.com>
122 * splash.cc (load_dialog): Make message more obvious.
125 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
127 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
128 necessary for newer compilers.
130 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
132 * desktop.cc: Include "ini.h" and "version.h".
133 (make_passwd_group): Skip the function on 9x/ME boxes when an
134 older version of Cygwin has been installed which doesn't
135 support mkpasswd/mkgroup on 9x/ME.
136 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
139 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
141 * desktop.cc (make_passwd_group): Don't exit when started
142 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
144 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
146 * install.cc (do_install): Add call to set_cygdrive_flags to sync
148 * mount.cc (set_cygdrive_flags): New function.
149 (get_cygdrive_flags): Ditto.
150 (default_cygdrive): Ditto.
151 (set_cygdrive_flags): Ditto.
152 * mount.h: Add prototype for set_cygdrive_flags.
154 2000-10-23 DJ Delorie <dj@redhat.com>
156 * ini.h: add source actions
157 * fromcwd.cc: check for available sources
158 * res.rc: add checkbox bitmaps
161 * choose.cc: add source column
162 * download.cc: download sources if called for
163 * install.cc: [un]install sources too
165 2000-10-22 DJ Delorie <dj@redhat.com>
167 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
168 ignore it wrt full_list if there's already a version installed.
169 (do_choose): Sort the list.
172 2000-10-12 DJ Delorie <dj@redhat.com>
174 * res.rc: Add more error strings.
176 * iniparse.y (new_package): re-initialize if needed.
177 * download.cc (do_download): Keep track of errors; notify and
179 * install.cc (do_install): Ditto.
181 2000-10-05 DJ Delorie <dj@redhat.com>
183 * Makefile.in: fix %.cc rule
185 2000-10-04 DJ Delorie <dj@redhat.com>
187 * desktop.cc: quote HOME and USER, don't . ./.profile
189 * choose.cc (build_labels): don't include in partial list just
190 because there's a *previous* version available.
192 * install.cc (do_install): if installing from local directory with
193 setup.ini and the file isn't found, look in "." also. Note errors.
195 2000-10-02 DJ Delorie <dj@redhat.com>
197 * ini.cc (do_ini): save setup.ini locally
199 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
201 * desktop.cc: quote escapes in prompt
203 2000-10-02 Jason Tishler <jt@dothill.com>
205 * root.cc (is_admin): New function.
206 (read_mount_table): Check for administrative priviledges and set
207 installation scope as appropriate.
209 2000-09-28 DJ Delorie <dj@redhat.com>
211 * nio-ftp.cc (ftp_line): handle continuations more robustly
213 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
215 * res.rc: increased the size of the site dialog (IDD_SITE) & the
216 corresponding list box to provide for more URL's to be listed.
217 Modified the position of the Back, Next and Cancel buttons to
218 correspond to the new size of the dialog.
220 2000-09-13 DJ Delorie <dj@redhat.com>
222 * install.cc (do_install): update disk fullness once per package
223 to improve performance
225 * choose.cc (create_listview): call ReleaseDC
227 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
229 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
230 returned, as it seems Samba 2.0.6+ returns this instead of
233 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
235 * site.cc (get_initial_list_idx): Don't default to saved URL if it
238 2000-09-07 DJ Delorie <dj@redhat.com>
240 * splash.cc: use version.h, not local decl
241 * res.rc: add "old version" message
244 * fromcwd.cc (canonicalize_version): make global
245 * iniparse.y: add setup-version support, fix bug in blank line
248 * inilex.l: add [exp] as alias for [test], add setup-version
249 * Makefile.in (version.c): add setup-version tag
251 * desktop.cc (do_desktop): remove 1.1 version number
252 (do_desktop_setup): ditto
254 * ini.cc (do_ini): zero out package list just in case we redo it.
256 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
258 * choose.cc (list_click): Check for nindexes==0; if so, return.
260 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
262 * localdir.cc: new, local package directory selection dialog; cd
263 into selected directory
264 * Makefile.in (OBJS): add localdir.o
265 * dialog.h: add prototype for do_local_dir
266 * main.cc (WinMain): initialize local_dir to cwd; add call to
268 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
269 * source.cc (dialog_cmd): ditto
270 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
271 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
272 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
273 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
274 * state.h: add local_dir variable
276 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
278 * desktop.cc: added logic to handle to the new dialog and to
279 default the setting for the new checkboxes based on whether the
280 desktop icon or start menu link already exist.
281 (desktop_icon): correction to desktop directories for desktop icon
282 creation. Additional logic added for Win95 which does not appear
283 to have Common Directories so if Common selected and null uses
285 (start_menu): Additional logic added for Win95 which does not
286 appear to have Common Directories so if Common selected and null
287 uses normal directory.
288 (do_desktop_setup): moved the saving of the icon, creation of the
289 bat file, profile, passwd, Start Menu link and desktop shortcut to
290 this method from do_desktop. Made the creation of the desktop
291 icon and start menu link conditional on settings of new dialog
293 * install.cc (do_install): changed next from IDD_S_DESKTOP to
295 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
296 * res.rc: added new resource to create a desktop dialog with 2
297 checkboxes for creating the desktop icon and start menu link.
298 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
299 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
300 * state.h: added root_menu and root_desktop for use in dialog.
302 2000-08-29 DJ Delorie <dj@redhat.com>
304 * choose.cc (scan_downloaded_files): scan for existing files, so
305 that the user only sees new downloads.
307 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
308 * site.cc (do_site): if we can't download the mirror list, go back
309 to the net setup box to choose another transport.
310 * autoload.c: add more functions
311 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
312 * resource.h: add WININET message
314 * net.cc (do_net): no longer default to IE5
315 * simpsock.h (class SimpleSocket): new, simplify socket operations
317 * nio-http.h: new, for direct http protocol
319 * nio-ftp.h: new, for direct http protocol
321 * netio.cc (set_url): move initialization here to handle redirections
322 (open): add direct http/ftp
323 * netio.h (NetIO::set_url): new
325 * log.cc (log_save): create directory for log if needed
327 * hash.cc, hash.h: new
328 * Makefile: add hash.o
329 * choose.cc: enable "uninstall" option
330 * download.cc: invert action test to accomodate uninstalling
331 * ini.h: add ACTION_UNINSTALL
332 * install.cc: add uninstall functionality
333 * res.rc: make install tag changeable
334 * resource.h: add uninstall resources
336 * res.rc: update mirror list URL
338 2000-08-24 DJ Delorie <dj@redhat.com>
340 * log.cc, log.h: new files
341 * Makefile.in (OBJS): add log.o
342 * tar.cc: use exit_setup instead of exit
343 * dialog.cc (fatal): use exit_setup instead of ExitProcess
344 * msg.cc (fatal): ditto
345 * install.cc (dialog_cmd): ditto
346 * ini.cc (do_ini): ditto
347 * main.cc (main): add logging
348 * source.cc (do_source): ditto
349 * root.cc (do_source): ditto
350 * site.cc (do_site): ditto
351 * other.cc (do_other): ditto
352 * net.cc (do_net): ditto
353 * choose.cc (do_choose): ditto
354 * download.cc (do_download): ditto
355 * install.cc (do_install): ditto
356 * msg.cc (fatal): ditto
358 * res.rc: mark password boxes as *being* password boxes.
360 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
361 calls won't use the same buffer.
362 * choose.cc (create_listview): don't default to full list if no changes
363 (base): return computed value, not temporary :-(
364 (do_choose): don't use installed.db if we're only downloading.
366 2000-08-23 DJ Delorie <dj@redhat.com>
368 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
369 * nio-ie5.h (flush_io): new
370 * netio.cc (load_dialog): note when we're initializing the dialog
371 box, and ignore changes to the edit fields then.
373 2000-08-21 DJ Delorie <dj@redhat.com>
377 * fromcwd.cc (found_file): don't remember the canonicalized version
379 * choose.cc (paint): print "nothing to do" message when list is empty.
380 (build_labels): Use version "0.0" if no version is available.
381 (create_listview): default to full list if nothing to install/update.
382 (base): new, returns basename of file
383 (read_installed_db): compare base names, not full paths
385 2000-08-11 DJ Delorie <dj@redhat.com>
387 * choose.cc: add new chooser dialog
388 * fromcwd.cc: use IDD_CHOOSE
389 * ini.cc: use IDD_CHOOSE
390 * main.cc: use IDD_CHOOSE
391 * ini.h: cosmetic changes
392 * res.rc: add choose dialog, bitmaps
393 * choose-spin.bmp: new
394 * choose-rtarrow.bmp: new
395 * resource.h: add choose dialog controls
397 * mount.cc: remove debug statement
399 2000-08-08 DJ Delorie <dj@redhat.com>
401 * Makefile.in (version.c): make version checking more robust
402 * splash.cc (load_dialog): handle case where there's no version
404 2000-08-07 DJ Delorie <dj@redhat.com>
406 * (all): add cvsid tags
407 * Makefile.in: generate version.c from ChangeLog, add splash.o
409 * res.rc: add splash screen
411 2000-08-02 DJ Delorie <dj@redhat.com>
413 * net.cc: remove proxy password code
414 * res.rc: remove proxy user/pass from net, add auth dialogs
415 * netio.cc,h: add sys/proxy auth methods
416 * nio-ie5: use them, check for http status codes
417 * state.h: add system authorization
419 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
422 2000-08-02 Norman Vine <nhv@yahoo,com>
424 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
426 2000-08-01 DJ Delorie <dj@redhat.com>
428 * postinstall.cc (each): don't rename files we ignore
429 (do_postinstall): set CYGWINROOT to root_dir, chdir there
431 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
433 2000-07-31 DJ Delorie <dj@redhat.com>
435 * desktop.cc: reverse PATH so /usr/bin precedes /bin
437 2000-07-18 DJ Delorie <dj@redhat.com>
439 * autoload.c: new, autoload dlls that might not be available.
440 * Makefile.in (OBJS): add autoload.o
442 * res.rc: rewrite root options (text/binary, system/user) to be
445 * site.cc (get_site_list): trim displayed URL, sort by domain
447 * net.cc (do_net): make IE5 default to checked, for now
449 * choose.cc (do_choose): sort packages correctly
450 * ini.cc (do_ini): handle parse errors more gracefully
452 (fprintf): line buffer output
453 (do_ini): if we can't load setup.ini, go back to the site list.
454 * ini.h: add "unknown" trust level
455 * inilex.l: absorb unknown trust levels and key/value pairs,
456 add line number logic
457 * iniparse.y: handle parse errors more gracefully.
458 * install.cc: skip packages with no valid install entry
460 2000-07-17 DJ Delorie <dj@cygnus.com>
462 * coding standards fixups, many files
463 * mkdir.cc: warn about deletions *before* deleting them
465 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
467 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
469 * other.cc (dialog_cmd): save download site URL
470 * site.cc (get_root_dir): new
471 (save_mirror_site): new
472 (dialog_cmd): save download site URL
473 (get_site_list): make list big enough to add prev site
474 (get_initial_list_idx): new, read last-used URL from file and
475 append it to site_list
476 (do_site): call get_initial_list_idx
478 * concat.cc (concat): avoid segfault when first parm is null
480 2000-07-13 DJ Delorie <dj@cygnus.com>
482 * postinstall.cc: new
483 * Makefile.in: add postinstall.o
484 * concat.h: add backslash ()
486 * desktop.cc (etc_profile): don't do postinstall
487 (backslash): moved to concat.cc
489 (make_postinstall_script): run directly
490 (do_desktop): chain to do_postinstall
491 * dialog.h: add exit_msg, do_postinstall
492 * download.cc: use exit_msg
494 * main.cc: add postinstall, exit_msg
495 * resource.h: add postinstall
496 * README: add more to-do items
498 2000-07-12 DJ Delorie <dj@cygnus.com>
500 * desktop.cc: add /etc/postinstall/ support
501 * install.cc: add more "standard" directories
503 2000-07-11 DJ Delorie <dj@cygnus.com>
505 * desktop.cc: create /etc/profile
506 * desktop.cc: fix include syntax
507 * Makefile.in: add auto-dependencies
508 * root.cc: support system vs user
516 * desktop.cc: make sure we use backslashes, not slashes.
517 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
518 * geturl.cc: change math for percentage to avoid overflow
520 * download.cc: post "download complete" message.
521 * root.cc: pre-fill in defaults if needed, don't start
522 browse at root_dir unless it's set.
523 * desktop.cc: quote $PATH in case it has spaces in it
525 2000-07-10 DJ Delorie <dj@cygnus.com>
527 * Makefile.in: add desktop.o and mklink2.o
528 * dialog.h: add do_desktop
529 * install.cc: create standard directories, call do_desktop
530 * res.rc: add cygwin.ico as a file also
531 * desktop.cc: new, do shortcuts, batch files, and icons
532 * mklink2.c: new, for COM
533 * README: update to-do list
535 2000-07-10 DJ Delorie <dj@cygnus.com>
537 * ini.cc (do_ini): don't worry about timestamps if we're not
540 2000-07-09 DJ Delorie <dj@cygnus.com>
542 * Makefile.in: add -I$(srcdir) for ini.h
544 2000-07-06 DJ Delorie <dj@cygnus.com>
546 * Replace everything with a new GUI version
547 * zlib/gzio.c: add gzctell() for progress displays
549 2000-06-22 DJ Delorie <dj@cygnus.com>
551 * setup.c (tarx): re-add call to write_pkg()
553 2000-06-07 DJ Delorie <dj@cygnus.com>
555 * cygcalls.c: new, call cygwin1.dll functions directly
556 * cygcalls.h: header for same
557 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
558 exes, fix cinstall.rc dependencies.
559 * path.c: remove unneeded code
560 * setup.c: use cygcalls instead of xcreate_process.
561 uncompress embedded files with zlib
562 add "-d" for "download only"
564 postpone mount changes until very end
565 add download progress indicators
566 pack multi-column listings more
567 auto-delete temp files
568 customize banner message according to options
569 prompt user for text/binary mounts
570 add warnings about empty setup directory, root installs, etc
572 2000-05-24 DJ Delorie <dj@cygnus.com>
574 * tar.c: New file; built-in tar using zlib.
575 * tar.h: New file; header for same.
576 * ctar.c: New file; test program for same.
577 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
578 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
579 * setup.c (tarx): add support for built-in tar
580 (main): accept unix-style slashes, check root dir for drive letters,
581 warn about installing in /, make sure cwd is empty for internet installs,
582 defer mounts to end of install, support built-in tar.
584 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
586 Fix compiler warnings throughout.
587 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
589 * setup.c: Make 'root' global.
590 (istargz): Return pointer to "stem" of matched .tar.gz file.
591 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
592 bogus check_for_installed check.
593 (recurse_dirs): Add preliminary support for .bat file execution.
594 (create_uninstall): Eliminate unneeded parameter.
595 (do_start_menu): Ditto.
597 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
598 scanning for the version number. Eliminate unneeded argument to
600 (getdownloadsource): Add 'name' to list of names rather than url.
601 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
602 unneeded argument in mkmount and do_start_menu.
604 2000-05-18 DJ Delorie <dj@cygnus.com>
606 * setup.c (optionprompt): allow multi-column, clean up message
607 about more options, be more robust about user input.
608 (getdownloadsource): make the mirror URL a macro.
609 (main): do mounts after done prompting user.
611 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
613 * setup.c (cleanup): Inverse order of deletion stands a better chance
614 of deleting cygpath.exe. Still seems to suffer from occasional races,
616 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
618 (output_file): Defend against an unlikely handle leak.
619 (main): Don't set up signal handling until we have something special to
622 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
624 * path.c (kill_cygpath): Delete function.
625 (exit_cygpath): Make more defensive so that it can be called at any
627 (cygpath_pipe): Don't set up signal here. Do it in main().
628 * setup.c (istargz): New function.
629 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
630 inexplicably fails on samba mounted partitions. Use istargz to match
632 (processdirlisting) Use istargz to match tar.gz tail.
633 (cleanup): Renamed from filedel.
634 (cleanup_on_signal): New function. Called on CTRL-C.
635 (main): Record handle of main thread so that it can be suspended when
636 CTRL-C occurs. Set up cleanup_on_signal signal handler.
638 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
640 * setup.c (do_start_menu): Don't concatenate paths to already built
643 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
645 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
646 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
648 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
650 * setup.c (filedel): Call exit_cygpath here so that we can be assured
651 that cygpath subprocess has died. This allows us to delete cygpath.exe
653 (optionprompt): Initialize response to -1 so that second screen of
655 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
656 * setup.h: Reflect init_pkgs prototype change.
658 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
660 * pkg.c (init_pkgs): Accept an argument to control what root registry
662 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
663 * setup.h: Reflect init_pkgs prototype change.
665 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
667 * error.c (winerror): Respond to gcc warning.
668 * path.c (cygpath_pipe): Ditto.
669 * setup.c (filedel): Call sa_cleanup on deleteme.
670 (create_shortcut): Coerce argument to eliminate compiler warning.
671 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
672 (refmatches): New function. Tests if ref is contained in a list of
674 (filematches): New function. Tests if filename matches one of a list
675 of packages to install.
676 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
677 test to accomodate _tar.gz.
678 (prompt): Ensure that stdout is flushed prior to asking for input.
679 (findhref): Initialize variables to quiet a compiler warning.
680 (processdirlisting): Accept list of packages to install. Special case
681 cygwin tar file version number.
682 (downloaddir): Accept list of packages to install.
683 (downloadfrom): Ditto.
684 (create_uninstall): Eliminate unneeded variables. Quote arguments to
686 (do_start_menu): Don't create uninstall bat file if updating or user
687 specified a list of packages.
688 (mkmount): Eliminate unneeded variables.
689 (get_pkg_stuff): New function. Checks for previous unversioned
691 (main): Accept -u and -f options and package names on the command line.
692 Use get_pkg_stuff to initialize package information. Umount /etc.
693 Call recurse_dirs and downloadfrom with list of package to install.
694 Ensure that all /usr/local directories are created. Output
695 installation time to setup.log.
696 * setup.h: Add some prototypes.
697 * xsystem.c (xcreate_process): Eliminate unneeded variable.
699 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
701 * setup.c (optionprompt): Don't overlap display of already seen options
703 (geturl): Print name of site which we're connecting to rather than "ftp
705 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
707 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
708 problems when user chooses x:\ as their root.
709 (main): For now, default to "non-update" mode. Allow -u option to
712 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
715 * setup.c (tarx): Skip already installed or older packages. Report
716 when a package has been updated.
717 (processdirlisting): Skip already installed or older packages.
718 (main): Detect -f option for forced installation. Initialize pkg stuff
720 * setup.h: Add pkg definitions.
722 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
724 * setup.c (findhref): Return NULL on empty string. Eat any trailing
726 (processdirlisting): Attempt to limit recursively processing the same
729 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
731 * setup.c (filedel): New function.
732 (output_file): Keep track of files extracted from setup.exe for
734 (tarx): Close process handle of child tar process or suffer handle
736 (getdownloadsource): Close mirror file so that it can be unlinked.
737 (processdirlisting): Return total number of files extracted.
738 (main): Initialize array of files to delete. Ensure that files are
739 closed on exit. Make the directory that setup.exe is started from ==
740 the directory where temporary files are placed. Issue an error if no
741 files were found to download.
742 * xsystem.c (xcreate_process): Close the thread handle. Close the
743 process handle if we waited for it to exit.
745 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
747 * setup.c (main): Change version number output.
749 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
751 * setup.c (tarx): Use full path name to tar executable.
752 (main): Build full pathname to tar executable. Create /usr/local/etc
755 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
757 * setup.c (findhref): Change method for scanning for href= to choose
758 the last one on the line. This is still not foolproof and probably
759 will need to be changed eventually. Don't abort if no "size" field is
761 (processdirlisting): Fix boolean algebra.
763 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
765 * main.c (tarx): Add some code for future task of unmounting
766 directories encountered in tar file.
768 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
770 * setup.c (findhref): Decode file size, when appropriate.
771 (needfile): New function. Returns 1 when file should be
773 (processdirlisting): Always download if file size does not
774 match. Prompt when download fails for some reason.
775 (getdownloadsource): Accomodate findhref argument changes.
777 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
779 Throughout, use global session handle rather than reinitializing for
780 each connect. Don't pass session as an argument to setup.c functions.
781 * setup.c (geturl): Only issue "Connecting to.." message when using
782 http or first time for ftp since subsequent connections will be fast.
783 (processdirlisting): Allocate space for "N" when user has specified
784 "N"ever option so that it can be subsequently freed.
785 (main): Abort if we can't get the list of mirrors.
787 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
789 * setup.c (main): Umount /bin and /lib.
791 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
793 * setup.c (main): Create an empty /var/run/utmp.
795 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
797 * Makefile.in: Add umount to list of files to include in setup.exe.
798 * setup.c (xumount): New function for unmounting directories.
799 (main): Unmount /usr.
800 (mkmount): Unmount "unix directory" before trying to figure out where
801 to create the directory.
803 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
805 * setup.c (mkmount): Use xcreate_process to start mount process,
807 (main): Don't do buffering on stdout or prompts won't be displayed
808 correctly if running in a cygwin shell with CYGWIN=tty.
810 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
812 * setup.c (main): Remove the CYGWIN environment variable before
813 starting any cygwin programs.
815 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
817 * setup.c (geturl): Use alternative method for finding filename part of
819 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
820 (downloaddir): Unlink file containing dir listing.
821 (downloadfrom): Ditto.
823 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
825 * setup.c (main): Disallow running setup.exe from the "root".
827 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
829 Use "warning" function, where appropriate, to output warnings.
830 * setup.c (warning): New function -- outputs warning to console and log
832 (tarx): Fix index used to reset file protection.
833 (main): Open the log file earlier so that more stuff can be sent to it.
835 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
837 * setup.c (processdirlisting): Make "N" option a little less aggressive.
839 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
841 * setup.c (tarx): Wait to after tar has completed to reset protections
842 or suffer races with tar process.
844 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
846 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
847 * setup.c (create_uninstall): Create the uninstall .bat file in the
848 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
849 list of files to be deleted. Fix directory detection for determining
851 (do_start_menu): Add /usr/local/bin to the path.
852 (main): Add slop to files.array allocation so that we don't have to
853 worry about reallocating the array when it grows too large when doing
854 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
857 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
859 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
862 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
864 * path.c (kill_cygpath): New cleanup function.
865 (exit_cygpath): New cleanup function.
866 (cygpath_pipe): New function. Sets up cygpath in the background for
867 translating filenames.
868 (pathcvt): Use background cygpath for file translation.
869 * setup.c (tarx): New function. Called to extract tar files, capture
870 logging output, and translate it to Windows format.
871 (recurse_dirs): Use 'tarx' function to extract files.
872 (create_uninstall): Use file list built up by tarx rather than reading
874 (mkmount): Add ability to mount root.
875 (main): Track elapsed install time. Mount root.
876 * starry.h: Add index field to strarry for tracking of tarx's usage of
878 * xsystem.c (xcreate_process): Return proces handle when not waiting.
880 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
883 (pathfp): New function. Preliminary work for new -f cygpath
885 * Makefile.in: Add new file.
886 (pathcvt): Move to new file.
890 * setup.c (processdirlisting): Always open file in text mode.
891 (create_uninstall): Ditto.
892 (getdownloadsource): Ditto.
895 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
897 * xsystem.c: New file.
898 * Makefile.in: Accomodate new file.
899 * setup.c (xsystem): Move to new file.
900 (recurse_dirs): Accept handle to output log file. Don't use ">"
901 redirection to trap tar output. Use supplied handle instead.
902 (create_uninstall): Accept FILE pointer to opened log file. Don't
903 unlink log file here.
904 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
905 (main): Open log file here and pass it to various functions. Unlink
908 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
910 Change occurrences of .usr.bin to .bin throughout.
911 * setup.c (geturl): Increase number of retries to 20. Let user know
912 what's going on during long connects.
913 (processdirlisting): Accept "A"lways and "N"ever as update options.
914 (create_uninstall): Load cygwin1.dll from the current directory rather
916 (main): Add some expository text.
918 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
920 * Makefile.in: Change method for compressing cygwin1.dll to avoid
921 creating a cygwin1.dll in the current directory. Ensure the addition
922 of -nostdinc to MINGW_CFLAGS.
924 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
926 * Makefile.in: Augment clean target.
928 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
930 * README: Added info about non-working mingw implementation
931 * gzip.exe.gz: Replace with a version from the same build as the other
933 * tar.exe.gz: Replace with a version from the same build as the other
935 * mount.exe.gz: Add to repository until, mingw can build setup.
936 * cygpath.exe.gz: ditto
937 * cygwin1.dll.gz: ditto
938 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
939 for Win9x. Display only a screenfull of options at a time. Call all
940 tools with an absolute path.
941 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
946 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
948 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
949 cygwin1.dll from ../cygwin subdirectory.
950 * gzip.exe.gz: Update.
951 * tar.exe.gz: Update.
953 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
955 * Makefile.in: Use ZLIB variable as a target.
957 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
959 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
960 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
962 * configure.in: Locate correct objcopy.
963 * configure: Regenerate.
965 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
967 * Makefile.in: New file.
968 * configure.in: New file.
969 * configure: New file.
970 * zlib/Makefile.am: New file.
971 * zlib/configure.in: New file.
972 * zlib/aclocal.m4: New file.
973 * zlib/acinclude.m4: New file.
974 * zlib/configure: Regenerate from configure.in.
975 * zlib/Makefile.in: Regenerate from Makefile.am