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