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