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