Commit Graph

2070 Commits

Author SHA1 Message Date
mikel b674a8fd0e fix typos noted by Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>. 1997-05-13 04:15:06 +00:00
lukem 808ec252ad don't print -ve ETA if file size has grown. noticed by hpeyerl@netbsd.org 1997-05-12 11:41:13 +00:00
mikel 90842c1ab1 xref sigaction(2), not obsolete sigvec(2). 1997-05-12 08:03:28 +00:00
mikel fdae96ca39 fix a typo, noted by SAITOH Masanobu in PR misc/3599.
while I'm here, fix some other nits.
1997-05-11 07:22:35 +00:00
mycroft 2d4fff450e Add another .PHONY. 1997-05-10 14:30:38 +00:00
mycroft 70f7fd1f59 Hack to work around compiler bug for now. 1997-05-09 18:07:23 +00:00
christos 041c0c5158 Change the way curdir is handled [this started at the previous version]...
Instead of adding it in .PATH, handle it specially the same way as "." is
handled.
1997-05-09 17:05:59 +00:00
mycroft caabb7f9be Clean up these Makefiles some more. 1997-05-09 15:04:03 +00:00
mycroft ed67bf81a0 Use DPSRCS. 1997-05-09 13:28:39 +00:00
mycroft cbd2582f5b Make these work again. 1997-05-09 12:38:30 +00:00
mycroft cc4a1553a1 Eliminate bogus redefinitions of standard targets. 1997-05-09 07:50:03 +00:00
mycroft f88245a571 Make sure to propagate OP_PHONY to all cohorts that already existed. 1997-05-09 04:08:26 +00:00
mycroft 8aed472136 Fix description of .NOPATH. 1997-05-08 22:34:34 +00:00
gwr bf6930a26c Add the new .NOPATH feature which can be used to disable .PATH search
for particular targets, i.e. .depend, objects, etc.  (from Christos).
1997-05-08 21:24:41 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
cjs 90423c173a If the -m option is used, make will check for the existence of the
directory specified, and add it to sysIncPath only if it exists.
However, afterwards make tested for the presence of a -m option by
checking to see if sysIncPath was an empty list, and assumed that
the -m option was not used if it was empty. This obviously breaks
if -m specified a non-existent directory. So I have added a flag
that is set if the -m option is used, and I test that instead.
1997-05-08 05:19:46 +00:00
mrg ca4f633f80 ensure strncpy() is nul terminated. 1997-05-07 16:35:34 +00:00
mycroft 9091c8c59a Clean up the proginstall hacks a little. 1997-05-07 16:06:00 +00:00
mycroft 6e0450c70f Use proginstall:: to disable installing PROG. 1997-05-07 15:59:08 +00:00
mycroft 01925a4fb0 Copy the .PHONY attribute to the cohorts of a double dependency. 1997-05-07 13:12:33 +00:00
mycroft a66a01875e Ignore `-t' when the .MAKE attribute is set. 1997-05-07 07:31:37 +00:00
mycroft fd8daf980e Add .MAKE to the .OBJDIR hacks, so they work with `make -n'. 1997-05-07 07:15:34 +00:00
mycroft 755bc65362 Make sure `-n' is actually disabled for targets with the .MAKE attribute. 1997-05-06 23:51:29 +00:00
mycroft b160845c38 Document .PHONY better. 1997-05-06 22:29:43 +00:00
mycroft 5be8dcf32a Don't do a suffix search for a .PHONY target. 1997-05-06 22:06:58 +00:00
gwr d9a167a17b Use .PATH.c: ... 1997-05-06 21:42:56 +00:00
mycroft bcc725c5e3 Don't do a VPATH or .PATH search for .PHONY targets. (From Christos.) 1997-05-06 20:59:42 +00:00
mycroft 0997556292 Don't touch .PHONY targets. 1997-05-06 20:57:47 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
christos 193e8d1b7d - Target searching addition:
Make used to only use the search path for nodes that were pure
	sources (not targets of other sources). This has been corrected
	and now gnu-autoconf generated Makefiles work in directories other
	than the source one.

- Suffix transformation rescanning:
	Suffix transformations (.c.o:; cc ...) were only recognized in
	the past when both suffixes were members of the suffix list.
	Thus a sequence like:
		.z.b:
			echo ${.TARGET}
		.SUFFIXES: .z
	would cause .z.b: to be inserted as a regular target (and the main
	target in this case). Other make programs always add rules that
	start with a period in the transformation list and never consider
	them as targets. We cannot do that (consider .depend files) so we
	resort to scanning the list of the current targets every time a
	suffix gets added, and we mutate existing targets that are now
	valid transformation rules into transformation rules. If the
	transformed target was also the main target, we set the main target
	to be the next target in the targets list.
1997-05-02 14:24:27 +00:00
christos 6cfa2388a9 Make used to add every directory where it found files in the search path.
I.e. if you had a line in your Makefile:
	../foo.o: foo.c
`..' would be added in the search path. The addition of such paths has
been now disabled. If a pathname contains a slash, then the directory
where such a file is found is not added to the search path. Of course
this eliminates most (all?) use of this function.
1997-05-02 14:23:51 +00:00
mellon 64b4faf663 Don't look at archive information on platforms that run ELF binaries 1997-04-26 07:11:14 +00:00
mycroft b279956f2c Use futimes(2), to prevent race conditions. 1997-04-24 06:22:16 +00:00
mycroft a81c377258 Truncate large UIDs and GIDs to USHRT_MAX, to accomodate the antiquated file
format.
1997-04-24 06:16:45 +00:00
kleink 7e36e158cf warn() instead of warnx() if opening the object file failed to avoid
confusion.
1997-04-23 11:17:38 +00:00
mikel 75418659ae use mkstemp() and plug memory leak; fixes PR bin/3517. 1997-04-23 07:11:09 +00:00
mrg d4aff75405 more.help no longer exists. 1997-04-23 03:11:02 +00:00
mycroft c734e2b3a4 Document that we handle `Precedence: list'. 1997-04-22 17:07:25 +00:00
mrg f27f869b2e script to help future less imports. 1997-04-22 14:32:27 +00:00
mrg 4b127c5d53 these files do not exist anymore. 1997-04-22 14:25:44 +00:00
mrg dd5c32d31d merge in less 321. 1997-04-22 14:16:18 +00:00
mrg 6be816bf44 import of less 321 1997-04-22 13:45:39 +00:00
mrg 9eab5a002c import of less 321 1997-04-22 13:45:11 +00:00
mikel 1e578d5d67 Note that the 'arch' flag may only be changed by the superuser; from
Paul Boven in PR kern/3491.
1997-04-22 05:54:13 +00:00
lukem 4ecb9a5a20 * cleanup parser of ftp://[user:pass@]host[:port]/[dir/][file]. should
be more robust now. fixes [bin/3520]. (missed this in previous commit msg)
* rename bad_url: to bad_ftp_url:
1997-04-21 18:45:47 +00:00
lukem d0e2ef4d67 i 1997-04-21 18:41:03 +00:00
is ab90e48ac0 Use isprint() instead of hardcoded c<' '. This way, as soon as isprint() and
friends are localized, talk will be able to communicate in (e.g.) ISO-8859-1.
Patch by Matthias Scheler (PR bin/2874).
1997-04-21 16:15:32 +00:00
mellon 11be63105a Set CLOCAL if dc flag is set 1997-04-20 00:03:05 +00:00
mellon b6e16df6f2 Add boolean for dc flag 1997-04-20 00:02:45 +00:00
mellon d9be4478ec Set O_NONBLOCK if dc flag is set. Don't set HUPCL if dc flag is set. 1997-04-20 00:02:10 +00:00
thorpej 6833a50866 Add support for the PowerPC. 1997-04-19 06:16:29 +00:00
thorpej 972c977c65 Change booleans from char to int so that comparisons against negative
values work as expected on systems with unsigned chars.
1997-04-19 06:06:06 +00:00
thorpej 4e82c2acc2 getopt() returns:
- an int, not a char, and
- -1 upon completion, not EOF.
1997-04-19 06:04:54 +00:00
thorpej 6eb4708731 Add two more casts to (unsigned char) to make this work on the PowerPC. 1997-04-19 05:21:36 +00:00
thorpej d5cbc0dd6f Don't build the BSD toolchain on the PowerPC. 1997-04-19 05:17:45 +00:00
mikel e66130db20 use proper pathname when unable to exec strip 1997-04-19 03:50:29 +00:00
thorpej 00b4f27f35 Allow the environment variable $STRIP to override _PATH_STRIP for
`-s', helping out cross-compiling.
1997-04-17 07:56:55 +00:00
thorpej af1cedb966 - Don't bother with two different versions of lorder.sh ... the version
for GNU nm(1) works just fine with the NetBSD nm(1).
- Allow the program to use for nm(1) to be overridden with the variable
  $NM.
1997-04-17 06:48:10 +00:00
lukem b65e7b7f4d use <paths.h> instead of "pathnames.h" for _PATH_DEFTAPE
change refs to rmt* to rst*
1997-04-15 07:23:06 +00:00
mikel bfba04e072 be a bit more careful about removing TAGQ from CIRCLEQ; from Ross
Harvey in PR bin/3489.
1997-04-15 05:39:46 +00:00
leo 48e267e695 Make it obey the DESTDIR environment. 1997-04-14 13:49:56 +00:00
lukem a9a78ba448 More enhancements/bugfixes (when will it end?)
* differentiate between being connected, and being logged in
* cleanup some text messages
* support username & password ftp URLs (ftp://user:pass@host/) in non-proxy
  situations; assume proxy supports it for proxy situations.
* cd to / before performing any autofetch transfers
* use strncasecmp in URL parsing. fix from <Todd.Miller@courtesan.com>
1997-04-14 09:09:15 +00:00
mrg 8d51c2f90d properly terminal buffer after calling strftime. 1997-04-13 13:44:13 +00:00
jeremy dd74602dad Changed inaccuracy in termination description described by PR#2226. 1997-04-10 20:22:50 +00:00
is c0515bc6f2 Repair the formatting of the by-memory-type table of "vmstat -m"
("MSDOSFS mount" is too big for %12s).
Note that this breaks naive parser scripts, but they would not parse
the earlier "MSDOSFS mount" line correctly, anyway.
1997-04-10 15:49:30 +00:00
christos 38ec358de7 Make the first field 2 characters wider so that XXX.XXX.XXX.XXX/XX fits.
From Kimmo
1997-04-10 15:45:58 +00:00
is f70c0e95c8 "undefined" -> "undef/%d" for memory type names. Similar, but not identical
to Ken Raeburns proposal from PR 1012, herewith closed.
1997-04-10 15:23:50 +00:00
mikel f78e29b2a9 descend unconditionally for clean and cleandir targets 1997-04-09 06:23:40 +00:00
mikel 3bafb68ebf more column alignment fixes 1997-04-07 06:58:18 +00:00
christos 5fe1aec948 PR/3451: Anders Hjalmarsson: Column alignment fixes after the netatalk addition. 1997-04-07 03:04:24 +00:00
lukem d473547d56 * support $ftp_proxy for ftp:// transfers [bin/3245]
* add "more" & "less" as synonyms for "page"
* move editline setup code into controlediting(), and call appropriately.
  only setup setup terminal if going into interactive mode. inspired
  by Todd Miller <todd.miller@courtesan.com>
1997-04-05 03:27:32 +00:00
christos 8913266731 PR/3445: NAKAJIMA Yoshihiro: Typo fix 1997-04-03 15:28:06 +00:00
mikel 8e4e532ceb include magdir/386bsd in MAGFILES; from Alan Barrett in PR misc/3422. 1997-04-03 07:17:24 +00:00
mikel e5159ae768 use correct source path; from Jeff Thieleke in PR bin/3414. 1997-04-03 07:13:31 +00:00
mikel 53704bc733 erase old Xs when printing new ones for swap usage; from Paul Boven in
PR bin/3431 with some changes by me.
1997-04-03 06:07:40 +00:00
christos c3a7122e73 - netatalk additions
- printf format fixes
- minor prototype cleanups
1997-04-03 04:46:44 +00:00
mrg b5b1013d11 fix buffer overrun; from bostic (via perry (via freebsd)) 1997-04-01 14:20:34 +00:00
christos 85d90bc463 PR/3416: enami tsugutomo: fix bug introduced in previous change to handle
long hostnames.
1997-03-31 04:13:15 +00:00
christos 3c24c46e1c PR/3399: Tatoku Ogaito: Careful with not null terminated utmp strings. 1997-03-29 23:21:37 +00:00
christos c6662d5a28 PR/3406: SAITOH Masanobu: Delete extra backslash in mesg.1. 1997-03-29 21:43:03 +00:00
christos e5c746f479 Don't disable wildcards completely; they are used by other Makefiles. 1997-03-29 16:51:26 +00:00
christos bdae19cbd2 Make sure that the children of nodes that are marked .MADE, are marked
UPTODATE and their timestamps are consistent.
1997-03-28 22:31:21 +00:00
mycroft 5d918be419 Minor formatting changes to make the output less ugly. 1997-03-28 02:15:21 +00:00
christos b4fe701a22 - Disable globbing for targets/dependencies when POSIX is defined.
- Fix globbing so that patterns that don't have a matching number of [] or {}
  don't get expanded. (before the [ case got expanded to nothing!) This is
  disabled.
1997-03-27 17:20:18 +00:00
mycroft c2c16c1c2c Set SCRIPTSDIR. 1997-03-27 11:06:20 +00:00
mycroft 0d07ddd923 Set FILESDIR correctly. 1997-03-27 08:59:22 +00:00
mycroft 90de81834d Set SCRIPTSNAME correctly. 1997-03-27 08:57:26 +00:00
thorpej 87ca1d62e0 Print Ethernet and FDDI addresses in the same format as ether_ntoa().
From Matt Thomas <matt@3am-software.com>
1997-03-26 01:49:44 +00:00
christos 3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +00:00
gwr f17ca2c65c Do not compile-in ${MACHINE} (as per PR#3386, OK'ed by christos) 1997-03-24 20:56:36 +00:00
christos 69ad8a6988 Locate all the children of a node marked as MADE. 1997-03-23 01:25:28 +00:00
lukem 4e01c5d008 use mkstemp() instead of mktemp() 1997-03-22 03:42:57 +00:00
lukem 0c81e58868 use mkstemp() instead of mktemp() to create the tempfile 1997-03-22 03:38:03 +00:00
mikel 2a8b3fc882 use FD_SETSIZE instead of manifest constant for select(2); from Rolf
Grossman in PR bin/3338.
1997-03-19 05:36:59 +00:00
christos 161ba8eea5 Fix problems in the RE substitution error handling. 1997-03-18 19:24:46 +00:00
mycroft 19d55000f7 Get the byte-swapping right in netmask(). 1997-03-18 03:40:10 +00:00
thorpej 6fac7758e7 Fix typo, per Dave Huang <khym@bga.com>, PR #3345. 1997-03-18 00:40:13 +00:00
christos 852505afb6 Fix pasto in error message. 1997-03-16 19:46:02 +00:00
christos 9384236fae Add support for installing hard and symbolic links via the [-l harms] flag. 1997-03-16 19:43:19 +00:00
lukem ae07641250 Fixes from <Todd.Miller@cs.colorado.edu>, with some cleanup and reworks by me:
* only echo "Passive mode" in verbose mode; scripts that use ftp
  may get unwanted output otherwise
* disable progress bar and modification time preservation when
  retreiving to a non-regular files. fixes progress bar getting in
  way of "get file /dev/tty"
* setup el_init() et al if editing is set, not if fromatty.
  TODO: migrate this to a function, and call if editing is turned on later
	in the session. also implement edit_cleanup if editing is turned off
* call el_set() after setting SIGWINCH handler. This fixes the problem
  when suspending in a non-cbreak shell (e.g, csh) would trash your tty mode.
* reset interactive mode correctly in auto_fetch() mget mode
1997-03-16 14:24:14 +00:00