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