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