1 2000-07-11 DJ Delorie <dj@cygnus.com>
3 * desktop.cc: create /etc/profile
4 * desktop.cc: fix include syntax
5 * Makefile.in: add auto-dependencies
6 * root.cc: support system vs user
14 * desktop.cc: make sure we use backslashes, not slashes.
16 2000-07-10 DJ Delorie <dj@cygnus.com>
18 * Makefile.in: add desktop.o and mklink2.o
19 * dialog.h: add do_desktop
20 * install.cc: create standard directories, call do_desktop
21 * res.rc: add cygwin.ico as a file also
22 * desktop.cc: new, do shortcuts, batch files, and icons
23 * mklink2.c: new, for COM
24 * README: update to-do list
26 2000-07-10 DJ Delorie <dj@cygnus.com>
28 * ini.cc (do_ini): don't worry about timestamps if we're not
31 2000-07-09 DJ Delorie <dj@cygnus.com>
33 * Makefile.in: add -I$(srcdir) for ini.h
35 2000-07-06 DJ Delorie <dj@cygnus.com>
37 * Replace everything with a new GUI version
38 * zlib/gzio.c: add gzctell() for progress displays
40 2000-06-22 DJ Delorie <dj@cygnus.com>
42 * setup.c (tarx): re-add call to write_pkg()
44 2000-06-07 DJ Delorie <dj@cygnus.com>
46 * cygcalls.c: new, call cygwin1.dll functions directly
47 * cygcalls.h: header for same
48 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
49 exes, fix cinstall.rc dependencies.
50 * path.c: remove unneeded code
51 * setup.c: use cygcalls instead of xcreate_process.
52 uncompress embedded files with zlib
53 add "-d" for "download only"
55 postpone mount changes until very end
56 add download progress indicators
57 pack multi-column listings more
58 auto-delete temp files
59 customize banner message according to options
60 prompt user for text/binary mounts
61 add warnings about empty setup directory, root installs, etc
63 2000-05-24 DJ Delorie <dj@cygnus.com>
65 * tar.c: New file; built-in tar using zlib.
66 * tar.h: New file; header for same.
67 * ctar.c: New file; test program for same.
68 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
69 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
70 * setup.c (tarx): add support for built-in tar
71 (main): accept unix-style slashes, check root dir for drive letters,
72 warn about installing in /, make sure cwd is empty for internet installs,
73 defer mounts to end of install, support built-in tar.
75 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
77 Fix compiler warnings throughout.
78 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
80 * setup.c: Make 'root' global.
81 (istargz): Return pointer to "stem" of matched .tar.gz file.
82 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
83 bogus check_for_installed check.
84 (recurse_dirs): Add preliminary support for .bat file execution.
85 (create_uninstall): Eliminate unneeded parameter.
86 (do_start_menu): Ditto.
88 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
89 scanning for the version number. Eliminate unneeded argument to
91 (getdownloadsource): Add 'name' to list of names rather than url.
92 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
93 unneeded argument in mkmount and do_start_menu.
95 2000-05-18 DJ Delorie <dj@cygnus.com>
97 * setup.c (optionprompt): allow multi-column, clean up message
98 about more options, be more robust about user input.
99 (getdownloadsource): make the mirror URL a macro.
100 (main): do mounts after done prompting user.
102 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
104 * setup.c (cleanup): Inverse order of deletion stands a better chance
105 of deleting cygpath.exe. Still seems to suffer from occasional races,
107 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
109 (output_file): Defend against an unlikely handle leak.
110 (main): Don't set up signal handling until we have something special to
113 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
115 * path.c (kill_cygpath): Delete function.
116 (exit_cygpath): Make more defensive so that it can be called at any
118 (cygpath_pipe): Don't set up signal here. Do it in main().
119 * setup.c (istargz): New function.
120 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
121 inexplicably fails on samba mounted partitions. Use istargz to match
123 (processdirlisting) Use istargz to match tar.gz tail.
124 (cleanup): Renamed from filedel.
125 (cleanup_on_signal): New function. Called on CTRL-C.
126 (main): Record handle of main thread so that it can be suspended when
127 CTRL-C occurs. Set up cleanup_on_signal signal handler.
129 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
131 * setup.c (do_start_menu): Don't concatenate paths to already built
134 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
136 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
137 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
139 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
141 * setup.c (filedel): Call exit_cygpath here so that we can be assured
142 that cygpath subprocess has died. This allows us to delete cygpath.exe
144 (optionprompt): Initialize response to -1 so that second screen of
146 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
147 * setup.h: Reflect init_pkgs prototype change.
149 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
151 * pkg.c (init_pkgs): Accept an argument to control what root registry
153 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
154 * setup.h: Reflect init_pkgs prototype change.
156 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
158 * error.c (winerror): Respond to gcc warning.
159 * path.c (cygpath_pipe): Ditto.
160 * setup.c (filedel): Call sa_cleanup on deleteme.
161 (create_shortcut): Coerce argument to eliminate compiler warning.
162 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
163 (refmatches): New function. Tests if ref is contained in a list of
165 (filematches): New function. Tests if filename matches one of a list
166 of packages to install.
167 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
168 test to accomodate _tar.gz.
169 (prompt): Ensure that stdout is flushed prior to asking for input.
170 (findhref): Initialize variables to quiet a compiler warning.
171 (processdirlisting): Accept list of packages to install. Special case
172 cygwin tar file version number.
173 (downloaddir): Accept list of packages to install.
174 (downloadfrom): Ditto.
175 (create_uninstall): Eliminate unneeded variables. Quote arguments to
177 (do_start_menu): Don't create uninstall bat file if updating or user
178 specified a list of packages.
179 (mkmount): Eliminate unneeded variables.
180 (get_pkg_stuff): New function. Checks for previous unversioned
182 (main): Accept -u and -f options and package names on the command line.
183 Use get_pkg_stuff to initialize package information. Umount /etc.
184 Call recurse_dirs and downloadfrom with list of package to install.
185 Ensure that all /usr/local directories are created. Output
186 installation time to setup.log.
187 * setup.h: Add some prototypes.
188 * xsystem.c (xcreate_process): Eliminate unneeded variable.
190 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
192 * setup.c (optionprompt): Don't overlap display of already seen options
194 (geturl): Print name of site which we're connecting to rather than "ftp
196 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
198 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
199 problems when user chooses x:\ as their root.
200 (main): For now, default to "non-update" mode. Allow -u option to
203 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
206 * setup.c (tarx): Skip already installed or older packages. Report
207 when a package has been updated.
208 (processdirlisting): Skip already installed or older packages.
209 (main): Detect -f option for forced installation. Initialize pkg stuff
211 * setup.h: Add pkg definitions.
213 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
215 * setup.c (findhref): Return NULL on empty string. Eat any trailing
217 (processdirlisting): Attempt to limit recursively processing the same
220 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
222 * setup.c (filedel): New function.
223 (output_file): Keep track of files extracted from setup.exe for
225 (tarx): Close process handle of child tar process or suffer handle
227 (getdownloadsource): Close mirror file so that it can be unlinked.
228 (processdirlisting): Return total number of files extracted.
229 (main): Initialize array of files to delete. Ensure that files are
230 closed on exit. Make the directory that setup.exe is started from ==
231 the directory where temporary files are placed. Issue an error if no
232 files were found to download.
233 * xsystem.c (xcreate_process): Close the thread handle. Close the
234 process handle if we waited for it to exit.
236 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
238 * setup.c (main): Change version number output.
240 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
242 * setup.c (tarx): Use full path name to tar executable.
243 (main): Build full pathname to tar executable. Create /usr/local/etc
246 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
248 * setup.c (findhref): Change method for scanning for href= to choose
249 the last one on the line. This is still not foolproof and probably
250 will need to be changed eventually. Don't abort if no "size" field is
252 (processdirlisting): Fix boolean algebra.
254 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
256 * main.c (tarx): Add some code for future task of unmounting
257 directories encountered in tar file.
259 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
261 * setup.c (findhref): Decode file size, when appropriate.
262 (needfile): New function. Returns 1 when file should be
264 (processdirlisting): Always download if file size does not
265 match. Prompt when download fails for some reason.
266 (getdownloadsource): Accomodate findhref argument changes.
268 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
270 Throughout, use global session handle rather than reinitializing for
271 each connect. Don't pass session as an argument to setup.c functions.
272 * setup.c (geturl): Only issue "Connecting to.." message when using
273 http or first time for ftp since subsequent connections will be fast.
274 (processdirlisting): Allocate space for "N" when user has specified
275 "N"ever option so that it can be subsequently freed.
276 (main): Abort if we can't get the list of mirrors.
278 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
280 * setup.c (main): Umount /bin and /lib.
282 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
284 * setup.c (main): Create an empty /var/run/utmp.
286 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
288 * Makefile.in: Add umount to list of files to include in setup.exe.
289 * setup.c (xumount): New function for unmounting directories.
290 (main): Unmount /usr.
291 (mkmount): Unmount "unix directory" before trying to figure out where
292 to create the directory.
294 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
296 * setup.c (mkmount): Use xcreate_process to start mount process,
298 (main): Don't do buffering on stdout or prompts won't be displayed
299 correctly if running in a cygwin shell with CYGWIN=tty.
301 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
303 * setup.c (main): Remove the CYGWIN environment variable before
304 starting any cygwin programs.
306 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
308 * setup.c (geturl): Use alternative method for finding filename part of
310 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
311 (downloaddir): Unlink file containing dir listing.
312 (downloadfrom): Ditto.
314 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
316 * setup.c (main): Disallow running setup.exe from the "root".
318 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
320 Use "warning" function, where appropriate, to output warnings.
321 * setup.c (warning): New function -- outputs warning to console and log
323 (tarx): Fix index used to reset file protection.
324 (main): Open the log file earlier so that more stuff can be sent to it.
326 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
328 * setup.c (processdirlisting): Make "N" option a little less aggressive.
330 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
332 * setup.c (tarx): Wait to after tar has completed to reset protections
333 or suffer races with tar process.
335 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
337 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
338 * setup.c (create_uninstall): Create the uninstall .bat file in the
339 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
340 list of files to be deleted. Fix directory detection for determining
342 (do_start_menu): Add /usr/local/bin to the path.
343 (main): Add slop to files.array allocation so that we don't have to
344 worry about reallocating the array when it grows too large when doing
345 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
348 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
350 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
353 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
355 * path.c (kill_cygpath): New cleanup function.
356 (exit_cygpath): New cleanup function.
357 (cygpath_pipe): New function. Sets up cygpath in the background for
358 translating filenames.
359 (pathcvt): Use background cygpath for file translation.
360 * setup.c (tarx): New function. Called to extract tar files, capture
361 logging output, and translate it to Windows format.
362 (recurse_dirs): Use 'tarx' function to extract files.
363 (create_uninstall): Use file list built up by tarx rather than reading
365 (mkmount): Add ability to mount root.
366 (main): Track elapsed install time. Mount root.
367 * starry.h: Add index field to strarry for tracking of tarx's usage of
369 * xsystem.c (xcreate_process): Return proces handle when not waiting.
371 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
374 (pathfp): New function. Preliminary work for new -f cygpath
376 * Makefile.in: Add new file.
377 (pathcvt): Move to new file.
381 * setup.c (processdirlisting): Always open file in text mode.
382 (create_uninstall): Ditto.
383 (getdownloadsource): Ditto.
386 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
388 * xsystem.c: New file.
389 * Makefile.in: Accomodate new file.
390 * setup.c (xsystem): Move to new file.
391 (recurse_dirs): Accept handle to output log file. Don't use ">"
392 redirection to trap tar output. Use supplied handle instead.
393 (create_uninstall): Accept FILE pointer to opened log file. Don't
394 unlink log file here.
395 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
396 (main): Open log file here and pass it to various functions. Unlink
399 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
401 Change occurrences of .usr.bin to .bin throughout.
402 * setup.c (geturl): Increase number of retries to 20. Let user know
403 what's going on during long connects.
404 (processdirlisting): Accept "A"lways and "N"ever as update options.
405 (create_uninstall): Load cygwin1.dll from the current directory rather
407 (main): Add some expository text.
409 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
411 * Makefile.in: Change method for compressing cygwin1.dll to avoid
412 creating a cygwin1.dll in the current directory. Ensure the addition
413 of -nostdinc to MINGW_CFLAGS.
415 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
417 * Makefile.in: Augment clean target.
419 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
421 * README: Added info about non-working mingw implementation
422 * gzip.exe.gz: Replace with a version from the same build as the other
424 * tar.exe.gz: Replace with a version from the same build as the other
426 * mount.exe.gz: Add to repository until, mingw can build setup.
427 * cygpath.exe.gz: ditto
428 * cygwin1.dll.gz: ditto
429 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
430 for Win9x. Display only a screenfull of options at a time. Call all
431 tools with an absolute path.
432 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
437 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
439 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
440 cygwin1.dll from ../cygwin subdirectory.
441 * gzip.exe.gz: Update.
442 * tar.exe.gz: Update.
444 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
446 * Makefile.in: Use ZLIB variable as a target.
448 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
450 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
451 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
453 * configure.in: Locate correct objcopy.
454 * configure: Regenerate.
456 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
458 * Makefile.in: New file.
459 * configure.in: New file.
460 * configure: New file.
461 * zlib/Makefile.am: New file.
462 * zlib/configure.in: New file.
463 * zlib/aclocal.m4: New file.
464 * zlib/acinclude.m4: New file.
465 * zlib/configure: Regenerate from configure.in.
466 * zlib/Makefile.in: Regenerate from Makefile.am