1 2000-08-11 DJ Delorie <dj@redhat.com>
3 * choose.cc: add new chooser dialog
4 * fromcwd.cc: use IDD_CHOOSE
5 * ini.cc: use IDD_CHOOSE
6 * main.cc: use IDD_CHOOSE
7 * ini.h: cosmetic changes
8 * res.rc: add choose dialog, bitmaps
10 * choose-rtarrow.bmp: new
11 * resource.h: add choose dialog controls
13 * mount.cc: remove debug statement
15 2000-08-08 DJ Delorie <dj@redhat.com>
17 * Makefile.in (version.c): make version checking more robust
18 * splash.cc (load_dialog): handle case where there's no version
20 2000-08-07 DJ Delorie <dj@redhat.com>
22 * (all): add cvsid tags
23 * Makefile.in: generate version.c from ChangeLog, add splash.o
25 * res.rc: add splash screen
27 2000-08-02 DJ Delorie <dj@redhat.com>
29 * net.cc: remove proxy password code
30 * res.rc: remove proxy user/pass from net, add auth dialogs
31 * netio.cc,h: add sys/proxy auth methods
32 * nio-ie5: use them, check for http status codes
33 * state.h: add system authorization
35 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
38 2000-08-02 Norman Vine <nhv@yahoo,com>
40 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
42 2000-08-01 DJ Delorie <dj@redhat.com>
44 * postinstall.cc (each): don't rename files we ignore
45 (do_postinstall): set CYGWINROOT to root_dir, chdir there
47 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
49 2000-07-31 DJ Delorie <dj@redhat.com>
51 * desktop.cc: reverse PATH so /usr/bin precedes /bin
53 2000-07-18 DJ Delorie <dj@redhat.com>
55 * autoload.c: new, autoload dlls that might not be available.
56 * Makefile.in (OBJS): add autoload.o
58 * res.rc: rewrite root options (text/binary, system/user) to be
61 * site.cc (get_site_list): trim displayed URL, sort by domain
63 * net.cc (do_net): make IE5 default to checked, for now
65 * choose.cc (do_choose): sort packages correctly
66 * ini.cc (do_ini): handle parse errors more gracefully
68 (fprintf): line buffer output
69 (do_ini): if we can't load setup.ini, go back to the site list.
70 * ini.h: add "unknown" trust level
71 * inilex.l: absorb unknown trust levels and key/value pairs,
73 * iniparse.y: handle parse errors more gracefully.
74 * install.cc: skip packages with no valid install entry
76 2000-07-17 DJ Delorie <dj@cygnus.com>
78 * coding standards fixups, many files
79 * mkdir.cc: warn about deletions *before* deleting them
81 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
83 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
85 * other.cc (dialog_cmd): save download site URL
86 * site.cc (get_root_dir): new
87 (save_mirror_site): new
88 (dialog_cmd): save download site URL
89 (get_site_list): make list big enough to add prev site
90 (get_initial_list_idx): new, read last-used URL from file and
91 append it to site_list
92 (do_site): call get_initial_list_idx
94 * concat.cc (concat): avoid segfault when first parm is null
96 2000-07-13 DJ Delorie <dj@cygnus.com>
99 * Makefile.in: add postinstall.o
100 * concat.h: add backslash ()
102 * desktop.cc (etc_profile): don't do postinstall
103 (backslash): moved to concat.cc
105 (make_postinstall_script): run directly
106 (do_desktop): chain to do_postinstall
107 * dialog.h: add exit_msg, do_postinstall
108 * download.cc: use exit_msg
110 * main.cc: add postinstall, exit_msg
111 * resource.h: add postinstall
112 * README: add more to-do items
114 2000-07-12 DJ Delorie <dj@cygnus.com>
116 * desktop.cc: add /etc/postinstall/ support
117 * install.cc: add more "standard" directories
119 2000-07-11 DJ Delorie <dj@cygnus.com>
121 * desktop.cc: create /etc/profile
122 * desktop.cc: fix include syntax
123 * Makefile.in: add auto-dependencies
124 * root.cc: support system vs user
132 * desktop.cc: make sure we use backslashes, not slashes.
133 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
134 * geturl.cc: change math for percentage to avoid overflow
136 * download.cc: post "download complete" message.
137 * root.cc: pre-fill in defaults if needed, don't start
138 browse at root_dir unless it's set.
139 * desktop.cc: quote $PATH in case it has spaces in it
141 2000-07-10 DJ Delorie <dj@cygnus.com>
143 * Makefile.in: add desktop.o and mklink2.o
144 * dialog.h: add do_desktop
145 * install.cc: create standard directories, call do_desktop
146 * res.rc: add cygwin.ico as a file also
147 * desktop.cc: new, do shortcuts, batch files, and icons
148 * mklink2.c: new, for COM
149 * README: update to-do list
151 2000-07-10 DJ Delorie <dj@cygnus.com>
153 * ini.cc (do_ini): don't worry about timestamps if we're not
156 2000-07-09 DJ Delorie <dj@cygnus.com>
158 * Makefile.in: add -I$(srcdir) for ini.h
160 2000-07-06 DJ Delorie <dj@cygnus.com>
162 * Replace everything with a new GUI version
163 * zlib/gzio.c: add gzctell() for progress displays
165 2000-06-22 DJ Delorie <dj@cygnus.com>
167 * setup.c (tarx): re-add call to write_pkg()
169 2000-06-07 DJ Delorie <dj@cygnus.com>
171 * cygcalls.c: new, call cygwin1.dll functions directly
172 * cygcalls.h: header for same
173 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
174 exes, fix cinstall.rc dependencies.
175 * path.c: remove unneeded code
176 * setup.c: use cygcalls instead of xcreate_process.
177 uncompress embedded files with zlib
178 add "-d" for "download only"
180 postpone mount changes until very end
181 add download progress indicators
182 pack multi-column listings more
183 auto-delete temp files
184 customize banner message according to options
185 prompt user for text/binary mounts
186 add warnings about empty setup directory, root installs, etc
188 2000-05-24 DJ Delorie <dj@cygnus.com>
190 * tar.c: New file; built-in tar using zlib.
191 * tar.h: New file; header for same.
192 * ctar.c: New file; test program for same.
193 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
194 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
195 * setup.c (tarx): add support for built-in tar
196 (main): accept unix-style slashes, check root dir for drive letters,
197 warn about installing in /, make sure cwd is empty for internet installs,
198 defer mounts to end of install, support built-in tar.
200 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
202 Fix compiler warnings throughout.
203 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
205 * setup.c: Make 'root' global.
206 (istargz): Return pointer to "stem" of matched .tar.gz file.
207 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
208 bogus check_for_installed check.
209 (recurse_dirs): Add preliminary support for .bat file execution.
210 (create_uninstall): Eliminate unneeded parameter.
211 (do_start_menu): Ditto.
213 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
214 scanning for the version number. Eliminate unneeded argument to
216 (getdownloadsource): Add 'name' to list of names rather than url.
217 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
218 unneeded argument in mkmount and do_start_menu.
220 2000-05-18 DJ Delorie <dj@cygnus.com>
222 * setup.c (optionprompt): allow multi-column, clean up message
223 about more options, be more robust about user input.
224 (getdownloadsource): make the mirror URL a macro.
225 (main): do mounts after done prompting user.
227 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
229 * setup.c (cleanup): Inverse order of deletion stands a better chance
230 of deleting cygpath.exe. Still seems to suffer from occasional races,
232 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
234 (output_file): Defend against an unlikely handle leak.
235 (main): Don't set up signal handling until we have something special to
238 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
240 * path.c (kill_cygpath): Delete function.
241 (exit_cygpath): Make more defensive so that it can be called at any
243 (cygpath_pipe): Don't set up signal here. Do it in main().
244 * setup.c (istargz): New function.
245 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
246 inexplicably fails on samba mounted partitions. Use istargz to match
248 (processdirlisting) Use istargz to match tar.gz tail.
249 (cleanup): Renamed from filedel.
250 (cleanup_on_signal): New function. Called on CTRL-C.
251 (main): Record handle of main thread so that it can be suspended when
252 CTRL-C occurs. Set up cleanup_on_signal signal handler.
254 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
256 * setup.c (do_start_menu): Don't concatenate paths to already built
259 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
261 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
262 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
264 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
266 * setup.c (filedel): Call exit_cygpath here so that we can be assured
267 that cygpath subprocess has died. This allows us to delete cygpath.exe
269 (optionprompt): Initialize response to -1 so that second screen of
271 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
272 * setup.h: Reflect init_pkgs prototype change.
274 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
276 * pkg.c (init_pkgs): Accept an argument to control what root registry
278 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
279 * setup.h: Reflect init_pkgs prototype change.
281 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
283 * error.c (winerror): Respond to gcc warning.
284 * path.c (cygpath_pipe): Ditto.
285 * setup.c (filedel): Call sa_cleanup on deleteme.
286 (create_shortcut): Coerce argument to eliminate compiler warning.
287 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
288 (refmatches): New function. Tests if ref is contained in a list of
290 (filematches): New function. Tests if filename matches one of a list
291 of packages to install.
292 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
293 test to accomodate _tar.gz.
294 (prompt): Ensure that stdout is flushed prior to asking for input.
295 (findhref): Initialize variables to quiet a compiler warning.
296 (processdirlisting): Accept list of packages to install. Special case
297 cygwin tar file version number.
298 (downloaddir): Accept list of packages to install.
299 (downloadfrom): Ditto.
300 (create_uninstall): Eliminate unneeded variables. Quote arguments to
302 (do_start_menu): Don't create uninstall bat file if updating or user
303 specified a list of packages.
304 (mkmount): Eliminate unneeded variables.
305 (get_pkg_stuff): New function. Checks for previous unversioned
307 (main): Accept -u and -f options and package names on the command line.
308 Use get_pkg_stuff to initialize package information. Umount /etc.
309 Call recurse_dirs and downloadfrom with list of package to install.
310 Ensure that all /usr/local directories are created. Output
311 installation time to setup.log.
312 * setup.h: Add some prototypes.
313 * xsystem.c (xcreate_process): Eliminate unneeded variable.
315 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
317 * setup.c (optionprompt): Don't overlap display of already seen options
319 (geturl): Print name of site which we're connecting to rather than "ftp
321 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
323 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
324 problems when user chooses x:\ as their root.
325 (main): For now, default to "non-update" mode. Allow -u option to
328 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
331 * setup.c (tarx): Skip already installed or older packages. Report
332 when a package has been updated.
333 (processdirlisting): Skip already installed or older packages.
334 (main): Detect -f option for forced installation. Initialize pkg stuff
336 * setup.h: Add pkg definitions.
338 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
340 * setup.c (findhref): Return NULL on empty string. Eat any trailing
342 (processdirlisting): Attempt to limit recursively processing the same
345 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
347 * setup.c (filedel): New function.
348 (output_file): Keep track of files extracted from setup.exe for
350 (tarx): Close process handle of child tar process or suffer handle
352 (getdownloadsource): Close mirror file so that it can be unlinked.
353 (processdirlisting): Return total number of files extracted.
354 (main): Initialize array of files to delete. Ensure that files are
355 closed on exit. Make the directory that setup.exe is started from ==
356 the directory where temporary files are placed. Issue an error if no
357 files were found to download.
358 * xsystem.c (xcreate_process): Close the thread handle. Close the
359 process handle if we waited for it to exit.
361 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
363 * setup.c (main): Change version number output.
365 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
367 * setup.c (tarx): Use full path name to tar executable.
368 (main): Build full pathname to tar executable. Create /usr/local/etc
371 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
373 * setup.c (findhref): Change method for scanning for href= to choose
374 the last one on the line. This is still not foolproof and probably
375 will need to be changed eventually. Don't abort if no "size" field is
377 (processdirlisting): Fix boolean algebra.
379 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
381 * main.c (tarx): Add some code for future task of unmounting
382 directories encountered in tar file.
384 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
386 * setup.c (findhref): Decode file size, when appropriate.
387 (needfile): New function. Returns 1 when file should be
389 (processdirlisting): Always download if file size does not
390 match. Prompt when download fails for some reason.
391 (getdownloadsource): Accomodate findhref argument changes.
393 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
395 Throughout, use global session handle rather than reinitializing for
396 each connect. Don't pass session as an argument to setup.c functions.
397 * setup.c (geturl): Only issue "Connecting to.." message when using
398 http or first time for ftp since subsequent connections will be fast.
399 (processdirlisting): Allocate space for "N" when user has specified
400 "N"ever option so that it can be subsequently freed.
401 (main): Abort if we can't get the list of mirrors.
403 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
405 * setup.c (main): Umount /bin and /lib.
407 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
409 * setup.c (main): Create an empty /var/run/utmp.
411 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
413 * Makefile.in: Add umount to list of files to include in setup.exe.
414 * setup.c (xumount): New function for unmounting directories.
415 (main): Unmount /usr.
416 (mkmount): Unmount "unix directory" before trying to figure out where
417 to create the directory.
419 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
421 * setup.c (mkmount): Use xcreate_process to start mount process,
423 (main): Don't do buffering on stdout or prompts won't be displayed
424 correctly if running in a cygwin shell with CYGWIN=tty.
426 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
428 * setup.c (main): Remove the CYGWIN environment variable before
429 starting any cygwin programs.
431 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
433 * setup.c (geturl): Use alternative method for finding filename part of
435 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
436 (downloaddir): Unlink file containing dir listing.
437 (downloadfrom): Ditto.
439 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
441 * setup.c (main): Disallow running setup.exe from the "root".
443 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
445 Use "warning" function, where appropriate, to output warnings.
446 * setup.c (warning): New function -- outputs warning to console and log
448 (tarx): Fix index used to reset file protection.
449 (main): Open the log file earlier so that more stuff can be sent to it.
451 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
453 * setup.c (processdirlisting): Make "N" option a little less aggressive.
455 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
457 * setup.c (tarx): Wait to after tar has completed to reset protections
458 or suffer races with tar process.
460 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
462 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
463 * setup.c (create_uninstall): Create the uninstall .bat file in the
464 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
465 list of files to be deleted. Fix directory detection for determining
467 (do_start_menu): Add /usr/local/bin to the path.
468 (main): Add slop to files.array allocation so that we don't have to
469 worry about reallocating the array when it grows too large when doing
470 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
473 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
475 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
478 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
480 * path.c (kill_cygpath): New cleanup function.
481 (exit_cygpath): New cleanup function.
482 (cygpath_pipe): New function. Sets up cygpath in the background for
483 translating filenames.
484 (pathcvt): Use background cygpath for file translation.
485 * setup.c (tarx): New function. Called to extract tar files, capture
486 logging output, and translate it to Windows format.
487 (recurse_dirs): Use 'tarx' function to extract files.
488 (create_uninstall): Use file list built up by tarx rather than reading
490 (mkmount): Add ability to mount root.
491 (main): Track elapsed install time. Mount root.
492 * starry.h: Add index field to strarry for tracking of tarx's usage of
494 * xsystem.c (xcreate_process): Return proces handle when not waiting.
496 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
499 (pathfp): New function. Preliminary work for new -f cygpath
501 * Makefile.in: Add new file.
502 (pathcvt): Move to new file.
506 * setup.c (processdirlisting): Always open file in text mode.
507 (create_uninstall): Ditto.
508 (getdownloadsource): Ditto.
511 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
513 * xsystem.c: New file.
514 * Makefile.in: Accomodate new file.
515 * setup.c (xsystem): Move to new file.
516 (recurse_dirs): Accept handle to output log file. Don't use ">"
517 redirection to trap tar output. Use supplied handle instead.
518 (create_uninstall): Accept FILE pointer to opened log file. Don't
519 unlink log file here.
520 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
521 (main): Open log file here and pass it to various functions. Unlink
524 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
526 Change occurrences of .usr.bin to .bin throughout.
527 * setup.c (geturl): Increase number of retries to 20. Let user know
528 what's going on during long connects.
529 (processdirlisting): Accept "A"lways and "N"ever as update options.
530 (create_uninstall): Load cygwin1.dll from the current directory rather
532 (main): Add some expository text.
534 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
536 * Makefile.in: Change method for compressing cygwin1.dll to avoid
537 creating a cygwin1.dll in the current directory. Ensure the addition
538 of -nostdinc to MINGW_CFLAGS.
540 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
542 * Makefile.in: Augment clean target.
544 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
546 * README: Added info about non-working mingw implementation
547 * gzip.exe.gz: Replace with a version from the same build as the other
549 * tar.exe.gz: Replace with a version from the same build as the other
551 * mount.exe.gz: Add to repository until, mingw can build setup.
552 * cygpath.exe.gz: ditto
553 * cygwin1.dll.gz: ditto
554 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
555 for Win9x. Display only a screenfull of options at a time. Call all
556 tools with an absolute path.
557 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
562 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
564 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
565 cygwin1.dll from ../cygwin subdirectory.
566 * gzip.exe.gz: Update.
567 * tar.exe.gz: Update.
569 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
571 * Makefile.in: Use ZLIB variable as a target.
573 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
575 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
576 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
578 * configure.in: Locate correct objcopy.
579 * configure: Regenerate.
581 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
583 * Makefile.in: New file.
584 * configure.in: New file.
585 * configure: New file.
586 * zlib/Makefile.am: New file.
587 * zlib/configure.in: New file.
588 * zlib/aclocal.m4: New file.
589 * zlib/acinclude.m4: New file.
590 * zlib/configure: Regenerate from configure.in.
591 * zlib/Makefile.in: Regenerate from Makefile.am