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