]> cygwin.com Git - cygwin-apps/setup.git/blob - ChangeLog
* coding standards fixups, many files
[cygwin-apps/setup.git] / ChangeLog
1 2000-07-17 DJ Delorie <dj@cygnus.com>
2
3 * coding standards fixups, many files
4 * mkdir.cc: warn about deletions *before* deleting them
5
6 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
7
8 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
9
10 * other.cc (dialog_cmd): save download site URL
11 * site.cc (get_root_dir): new
12 (save_mirror_site): new
13 (dialog_cmd): save download site URL
14 (get_site_list): make list big enough to add prev site
15 (get_initial_list_idx): new, read last-used URL from file and
16 append it to site_list
17 (do_site): call get_initial_list_idx
18
19 * concat.cc (concat): avoid segfault when first parm is null
20
21 2000-07-13 DJ Delorie <dj@cygnus.com>
22
23 * postinstall.cc: new
24 * Makefile.in: add postinstall.o
25 * concat.h: add backslash ()
26 * concat.cc: ditto
27 * desktop.cc (etc_profile): don't do postinstall
28 (backslash): moved to concat.cc
29 (uexists): new
30 (make_postinstall_script): run directly
31 (do_desktop): chain to do_postinstall
32 * dialog.h: add exit_msg, do_postinstall
33 * download.cc: use exit_msg
34 * install.cc: ditto
35 * main.cc: add postinstall, exit_msg
36 * resource.h: add postinstall
37 * README: add more to-do items
38
39 2000-07-12 DJ Delorie <dj@cygnus.com>
40
41 * desktop.cc: add /etc/postinstall/ support
42 * install.cc: add more "standard" directories
43
44 2000-07-11 DJ Delorie <dj@cygnus.com>
45
46 * desktop.cc: create /etc/profile
47 * desktop.cc: fix include syntax
48 * Makefile.in: add auto-dependencies
49 * root.cc: support system vs user
50 * desktop.cc: ditto
51 * mount.h: ditto
52 * mount.cc: ditto
53 * install.cc: ditto
54 * res.rc: ditto
55 * resource.h: ditto
56 * state.h: ditto
57 * desktop.cc: make sure we use backslashes, not slashes.
58 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
59 * geturl.cc: change math for percentage to avoid overflow
60 * install.cc: ditto
61 * download.cc: post "download complete" message.
62 * root.cc: pre-fill in defaults if needed, don't start
63 browse at root_dir unless it's set.
64 * desktop.cc: quote $PATH in case it has spaces in it
65
66 2000-07-10 DJ Delorie <dj@cygnus.com>
67
68 * Makefile.in: add desktop.o and mklink2.o
69 * dialog.h: add do_desktop
70 * install.cc: create standard directories, call do_desktop
71 * res.rc: add cygwin.ico as a file also
72 * desktop.cc: new, do shortcuts, batch files, and icons
73 * mklink2.c: new, for COM
74 * README: update to-do list
75
76 2000-07-10 DJ Delorie <dj@cygnus.com>
77
78 * ini.cc (do_ini): don't worry about timestamps if we're not
79 actually installing.
80
81 2000-07-09 DJ Delorie <dj@cygnus.com>
82
83 * Makefile.in: add -I$(srcdir) for ini.h
84
85 2000-07-06 DJ Delorie <dj@cygnus.com>
86
87 * Replace everything with a new GUI version
88 * zlib/gzio.c: add gzctell() for progress displays
89
90 2000-06-22 DJ Delorie <dj@cygnus.com>
91
92 * setup.c (tarx): re-add call to write_pkg()
93
94 2000-06-07 DJ Delorie <dj@cygnus.com>
95
96 * cygcalls.c: new, call cygwin1.dll functions directly
97 * cygcalls.h: header for same
98 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
99 exes, fix cinstall.rc dependencies.
100 * path.c: remove unneeded code
101 * setup.c: use cygcalls instead of xcreate_process.
102 uncompress embedded files with zlib
103 add "-d" for "download only"
104 add "-h" for help
105 postpone mount changes until very end
106 add download progress indicators
107 pack multi-column listings more
108 auto-delete temp files
109 customize banner message according to options
110 prompt user for text/binary mounts
111 add warnings about empty setup directory, root installs, etc
112
113 2000-05-24 DJ Delorie <dj@cygnus.com>
114
115 * tar.c: New file; built-in tar using zlib.
116 * tar.h: New file; header for same.
117 * ctar.c: New file; test program for same.
118 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
119 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
120 * setup.c (tarx): add support for built-in tar
121 (main): accept unix-style slashes, check root dir for drive letters,
122 warn about installing in /, make sure cwd is empty for internet installs,
123 defer mounts to end of install, support built-in tar.
124
125 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
126
127 Fix compiler warnings throughout.
128 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
129 get_pkg_stuff.
130 * setup.c: Make 'root' global.
131 (istargz): Return pointer to "stem" of matched .tar.gz file.
132 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
133 bogus check_for_installed check.
134 (recurse_dirs): Add preliminary support for .bat file execution.
135 (create_uninstall): Eliminate unneeded parameter.
136 (do_start_menu): Ditto.
137 (mkmount): Ditto.
138 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
139 scanning for the version number. Eliminate unneeded argument to
140 create_uninstall.
141 (getdownloadsource): Add 'name' to list of names rather than url.
142 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
143 unneeded argument in mkmount and do_start_menu.
144
145 2000-05-18 DJ Delorie <dj@cygnus.com>
146
147 * setup.c (optionprompt): allow multi-column, clean up message
148 about more options, be more robust about user input.
149 (getdownloadsource): make the mirror URL a macro.
150 (main): do mounts after done prompting user.
151
152 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
153
154 * setup.c (cleanup): Inverse order of deletion stands a better chance
155 of deleting cygpath.exe. Still seems to suffer from occasional races,
156 though.
157 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
158 w2k.
159 (output_file): Defend against an unlikely handle leak.
160 (main): Don't set up signal handling until we have something special to
161 do.
162
163 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
164
165 * path.c (kill_cygpath): Delete function.
166 (exit_cygpath): Make more defensive so that it can be called at any
167 time.
168 (cygpath_pipe): Don't set up signal here. Do it in main().
169 * setup.c (istargz): New function.
170 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
171 inexplicably fails on samba mounted partitions. Use istargz to match
172 tar.gz tail.
173 (processdirlisting) Use istargz to match tar.gz tail.
174 (cleanup): Renamed from filedel.
175 (cleanup_on_signal): New function. Called on CTRL-C.
176 (main): Record handle of main thread so that it can be suspended when
177 CTRL-C occurs. Set up cleanup_on_signal signal handler.
178
179 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
180
181 * setup.c (do_start_menu): Don't concatenate paths to already built
182 paths.
183
184 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
185
186 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
187 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
188 that.
189 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
190 root"-specific.
191 * setup.c (filedel): Call exit_cygpath here so that we can be assured
192 that cygpath subprocess has died. This allows us to delete cygpath.exe
193 and cygwin1.dll.
194 (optionprompt): Initialize response to -1 so that second screen of
195 mirrors will appear.
196 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
197 * setup.h: Reflect init_pkgs prototype change.
198
199 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
200
201 * pkg.c (init_pkgs): Accept an argument to control what root registry
202 key should be used.
203 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
204 * setup.h: Reflect init_pkgs prototype change.
205
206 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
207
208 * error.c (winerror): Respond to gcc warning.
209 * path.c (cygpath_pipe): Ditto.
210 * setup.c (filedel): Call sa_cleanup on deleteme.
211 (create_shortcut): Coerce argument to eliminate compiler warning.
212 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
213 (refmatches): New function. Tests if ref is contained in a list of
214 packages to install.
215 (filematches): New function. Tests if filename matches one of a list
216 of packages to install.
217 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
218 test to accomodate _tar.gz.
219 (prompt): Ensure that stdout is flushed prior to asking for input.
220 (findhref): Initialize variables to quiet a compiler warning.
221 (processdirlisting): Accept list of packages to install. Special case
222 cygwin tar file version number.
223 (downloaddir): Accept list of packages to install.
224 (downloadfrom): Ditto.
225 (create_uninstall): Eliminate unneeded variables. Quote arguments to
226 regtool.
227 (do_start_menu): Don't create uninstall bat file if updating or user
228 specified a list of packages.
229 (mkmount): Eliminate unneeded variables.
230 (get_pkg_stuff): New function. Checks for previous unversioned
231 installation.
232 (main): Accept -u and -f options and package names on the command line.
233 Use get_pkg_stuff to initialize package information. Umount /etc.
234 Call recurse_dirs and downloadfrom with list of package to install.
235 Ensure that all /usr/local directories are created. Output
236 installation time to setup.log.
237 * setup.h: Add some prototypes.
238 * xsystem.c (xcreate_process): Eliminate unneeded variable.
239
240 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
241
242 * setup.c (optionprompt): Don't overlap display of already seen options
243 on next page.
244 (geturl): Print name of site which we're connecting to rather than "ftp
245 site".
246 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
247 test too simplistic?
248 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
249 problems when user chooses x:\ as their root.
250 (main): For now, default to "non-update" mode. Allow -u option to
251 signify an update.
252
253 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
254
255 * pkg.c: New file.
256 * setup.c (tarx): Skip already installed or older packages. Report
257 when a package has been updated.
258 (processdirlisting): Skip already installed or older packages.
259 (main): Detect -f option for forced installation. Initialize pkg stuff
260 if appropriate.
261 * setup.h: Add pkg definitions.
262
263 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
264
265 * setup.c (findhref): Return NULL on empty string. Eat any trailing
266 ";something".
267 (processdirlisting): Attempt to limit recursively processing the same
268 directory.
269
270 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
271
272 * setup.c (filedel): New function.
273 (output_file): Keep track of files extracted from setup.exe for
274 subsequent deletion.
275 (tarx): Close process handle of child tar process or suffer handle
276 leak.
277 (getdownloadsource): Close mirror file so that it can be unlinked.
278 (processdirlisting): Return total number of files extracted.
279 (main): Initialize array of files to delete. Ensure that files are
280 closed on exit. Make the directory that setup.exe is started from ==
281 the directory where temporary files are placed. Issue an error if no
282 files were found to download.
283 * xsystem.c (xcreate_process): Close the thread handle. Close the
284 process handle if we waited for it to exit.
285
286 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
287
288 * setup.c (main): Change version number output.
289
290 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
291
292 * setup.c (tarx): Use full path name to tar executable.
293 (main): Build full pathname to tar executable. Create /usr/local/etc
294 by default.
295
296 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
297
298 * setup.c (findhref): Change method for scanning for href= to choose
299 the last one on the line. This is still not foolproof and probably
300 will need to be changed eventually. Don't abort if no "size" field is
301 evident.
302 (processdirlisting): Fix boolean algebra.
303
304 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
305
306 * main.c (tarx): Add some code for future task of unmounting
307 directories encountered in tar file.
308
309 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
310
311 * setup.c (findhref): Decode file size, when appropriate.
312 (needfile): New function. Returns 1 when file should be
313 downloaded.
314 (processdirlisting): Always download if file size does not
315 match. Prompt when download fails for some reason.
316 (getdownloadsource): Accomodate findhref argument changes.
317
318 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
319
320 Throughout, use global session handle rather than reinitializing for
321 each connect. Don't pass session as an argument to setup.c functions.
322 * setup.c (geturl): Only issue "Connecting to.." message when using
323 http or first time for ftp since subsequent connections will be fast.
324 (processdirlisting): Allocate space for "N" when user has specified
325 "N"ever option so that it can be subsequently freed.
326 (main): Abort if we can't get the list of mirrors.
327
328 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
329
330 * setup.c (main): Umount /bin and /lib.
331
332 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
333
334 * setup.c (main): Create an empty /var/run/utmp.
335
336 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
337
338 * Makefile.in: Add umount to list of files to include in setup.exe.
339 * setup.c (xumount): New function for unmounting directories.
340 (main): Unmount /usr.
341 (mkmount): Unmount "unix directory" before trying to figure out where
342 to create the directory.
343
344 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
345
346 * setup.c (mkmount): Use xcreate_process to start mount process,
347 avoiding the shell.
348 (main): Don't do buffering on stdout or prompts won't be displayed
349 correctly if running in a cygwin shell with CYGWIN=tty.
350
351 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
352
353 * setup.c (main): Remove the CYGWIN environment variable before
354 starting any cygwin programs.
355
356 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
357
358 * setup.c (geturl): Use alternative method for finding filename part of
359 a URL.
360 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
361 (downloaddir): Unlink file containing dir listing.
362 (downloadfrom): Ditto.
363
364 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
365
366 * setup.c (main): Disallow running setup.exe from the "root".
367
368 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
369
370 Use "warning" function, where appropriate, to output warnings.
371 * setup.c (warning): New function -- outputs warning to console and log
372 file.
373 (tarx): Fix index used to reset file protection.
374 (main): Open the log file earlier so that more stuff can be sent to it.
375
376 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
377
378 * setup.c (processdirlisting): Make "N" option a little less aggressive.
379
380 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
381
382 * setup.c (tarx): Wait to after tar has completed to reset protections
383 or suffer races with tar process.
384
385 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
386
387 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
388 * setup.c (create_uninstall): Create the uninstall .bat file in the
389 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
390 list of files to be deleted. Fix directory detection for determining
391 when to use 'rmdir'.
392 (do_start_menu): Add /usr/local/bin to the path.
393 (main): Add slop to files.array allocation so that we don't have to
394 worry about reallocating the array when it grows too large when doing
395 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
396 files.
397
398 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
399
400 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
401 download.
402
403 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
404
405 * path.c (kill_cygpath): New cleanup function.
406 (exit_cygpath): New cleanup function.
407 (cygpath_pipe): New function. Sets up cygpath in the background for
408 translating filenames.
409 (pathcvt): Use background cygpath for file translation.
410 * setup.c (tarx): New function. Called to extract tar files, capture
411 logging output, and translate it to Windows format.
412 (recurse_dirs): Use 'tarx' function to extract files.
413 (create_uninstall): Use file list built up by tarx rather than reading
414 the log file.
415 (mkmount): Add ability to mount root.
416 (main): Track elapsed install time. Mount root.
417 * starry.h: Add index field to strarry for tracking of tarx's usage of
418 this structure.
419 * xsystem.c (xcreate_process): Return proces handle when not waiting.
420
421 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
422
423 * path.c: New file.
424 (pathfp): New function. Preliminary work for new -f cygpath
425 functionality.
426 * Makefile.in: Add new file.
427 (pathcvt): Move to new file.
428 (dtoupath): Ditto.
429 (utodpath): Ditto.
430 (pathcat): Ditto.
431 * setup.c (processdirlisting): Always open file in text mode.
432 (create_uninstall): Ditto.
433 (getdownloadsource): Ditto.
434 (main): Ditto.
435
436 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
437
438 * xsystem.c: New file.
439 * Makefile.in: Accomodate new file.
440 * setup.c (xsystem): Move to new file.
441 (recurse_dirs): Accept handle to output log file. Don't use ">"
442 redirection to trap tar output. Use supplied handle instead.
443 (create_uninstall): Accept FILE pointer to opened log file. Don't
444 unlink log file here.
445 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
446 (main): Open log file here and pass it to various functions. Unlink
447 when done.
448
449 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
450
451 Change occurrences of .usr.bin to .bin throughout.
452 * setup.c (geturl): Increase number of retries to 20. Let user know
453 what's going on during long connects.
454 (processdirlisting): Accept "A"lways and "N"ever as update options.
455 (create_uninstall): Load cygwin1.dll from the current directory rather
456 than \bin.
457 (main): Add some expository text.
458
459 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
460
461 * Makefile.in: Change method for compressing cygwin1.dll to avoid
462 creating a cygwin1.dll in the current directory. Ensure the addition
463 of -nostdinc to MINGW_CFLAGS.
464
465 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
466
467 * Makefile.in: Augment clean target.
468
469 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
470
471 * README: Added info about non-working mingw implementation
472 * gzip.exe.gz: Replace with a version from the same build as the other
473 tools.
474 * tar.exe.gz: Replace with a version from the same build as the other
475 tools.
476 * mount.exe.gz: Add to repository until, mingw can build setup.
477 * cygpath.exe.gz: ditto
478 * cygwin1.dll.gz: ditto
479 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
480 for Win9x. Display only a screenfull of options at a time. Call all
481 tools with an absolute path.
482 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
483 them.
484 * setup.dsw: ditto
485 * zlib.dsw: ditto
486
487 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
488
489 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
490 cygwin1.dll from ../cygwin subdirectory.
491 * gzip.exe.gz: Update.
492 * tar.exe.gz: Update.
493
494 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
495
496 * Makefile.in: Use ZLIB variable as a target.
497
498 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
499
500 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
501 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
502 sources.
503 * configure.in: Locate correct objcopy.
504 * configure: Regenerate.
505
506 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
507
508 * Makefile.in: New file.
509 * configure.in: New file.
510 * configure: New file.
511 * zlib/Makefile.am: New file.
512 * zlib/configure.in: New file.
513 * zlib/aclocal.m4: New file.
514 * zlib/acinclude.m4: New file.
515 * zlib/configure: Regenerate from configure.in.
516 * zlib/Makefile.in: Regenerate from Makefile.am
This page took 0.061363 seconds and 6 git commands to generate.