Commit Graph

7194 Commits

Author SHA1 Message Date
wiz e000293cc0 Add RCS Id. 2003-12-28 17:26:48 +00:00
wiz 6ac2a4f4db Add a BSD licensed zgrep written by me.
Much nicer than the old one, if I may say so.

Thanks go to atatat for testing and suggestions.
2003-12-28 17:26:00 +00:00
mrg 0889156103 GNU gzip compatibility: don't let "gzip -dc" (zcat) operate on non-gzip
files by default.  -f must be used.
2003-12-28 13:42:28 +00:00
mrg f13009df25 fix an error in the previous 2003-12-28 13:40:56 +00:00
mrg 7530d0a53d zdiff is also zcmp (from wiz) 2003-12-28 13:37:23 +00:00
wiz 98018344b7 No argument necessary after .Nm; add missing comma to enumeration. 2003-12-28 12:49:41 +00:00
wiz 28c2ebe997 Use more macros. 2003-12-28 12:48:03 +00:00
wiz 18a6b94f65 Uppercase CRT. 2003-12-28 12:47:52 +00:00
wiz 3a92ef57da Add RCS Id. 2003-12-28 12:43:43 +00:00
mrg ff7efa72db install gzexe, zdiff, zforce, zmore and znew scripts and manual pages.
XXX: now only missing zgrep.
2003-12-28 12:37:42 +00:00
mrg 5ddb436023 import openbsd z* scripts and manuals. 2003-12-28 12:31:55 +00:00
jmc 6cf7ed4ade Fix PR#4980 and support common symbols correctly in crunched programs.
Exclude them from renaming and expect the linker to do the right thing in
resolving them all to the library copy (i.e. optarg) or locally as the
case may be. Testing multiple programs crunched which reference optarg shows
correct behavior now.
2003-12-28 09:21:36 +00:00
jmc c392dc52fe Support crunch configs which specify relative srcdir's but don't use -D. For
these cases, prepend getwd() onto the front of them so a full correct path
is passed to the reach over make command (as it's running from at least
a subdir of the current directory for each object)
2003-12-27 22:28:38 +00:00
wiz 8114895bf3 Bump date for previous; use macros for marking up
the dollar sign.
2003-12-26 23:22:31 +00:00
jmc 31e37b335f Note that variable expansion can occur within SYSV style = substitions. 2003-12-26 23:18:18 +00:00
jmc 3eb499682d Support variable expansions inside of SYSV style = substitutions. Better matches
expectations (and some cases of historical behavior I've found). Also fixes
PR#3865
2003-12-26 23:13:32 +00:00
wiz 67ae4b51b8 .Pp\n.Pp -> .Pp. 2003-12-26 15:24:00 +00:00
mrg 63f41c4e03 --long-options are supported 2003-12-26 15:21:05 +00:00
wiz cf79907567 New sentence, new line; avoid &; uppercase CRC. 2003-12-26 15:18:54 +00:00
mrg f737ab4d3e bump .Dd 2003-12-26 15:16:05 +00:00
mrg a4624b06a5 - document --list
- use unsigned char's that are used in unsigned calculations later.
2003-12-26 15:15:49 +00:00
mrg 9e3ca570b9 support gzip -l -v. 2003-12-26 15:06:16 +00:00
mrg 88899e3372 - print totals for --list.
- round down percentages, like GNU gzip does
- use "stdout" not "-", like GNU gzip does
- factor percent calculation code.
2003-12-26 14:49:37 +00:00
mrg 78b17b7b2b begin to start to support --list. 2003-12-26 14:11:01 +00:00
jmc c7c6bf2bbd Don't assume startc is always {, set delim to endc when separating the args to
the ? test.
2003-12-26 08:03:06 +00:00
wiz f239211326 Sort options; no spaces at EOL; limit line lengths.
Fix one typo.
2003-12-23 23:20:37 +00:00
mrg 75fa5559f5 - make this WARNS=3 happy
- add RCSID()
- document the version number
2003-12-23 15:02:40 +00:00
jdolecek 23c869fe88 fix markup of --suffix option
add zlib(3) xref also to SEE ALSO
2003-12-23 08:19:49 +00:00
jdolecek 3c67b87463 some const-poisoing, depend on bss to set gzipflags[] 2003-12-23 08:11:58 +00:00
jdolecek 1740f0282b remove one extra backslash from MLINKS 2003-12-23 07:56:01 +00:00
mrg 0a1b09ba9c install gunzip, zcat & gzcat links. 2003-12-23 06:23:32 +00:00
mrg 874b680779 delete unused variables 2003-12-23 06:23:18 +00:00
mrg 4084ec5402 import distrib/utils/x_gzip into usr.bin/gzip, with these enhancements:
- fully updated manual
	- -n/-N support
	- time stamp/owner/etc saved properly
	- GNU gzip --long-options supported (missing --ascii, --list
	  and --licence)
	- various cleanups & fixes

note that "-n" (save filename) support is currently disabled due to
depending on API changes in zlib.  for now, this support is disabled
(however "gzip -N -d" works.)

this gzip(1) replacement is ready for serious testing.  issues are:
	- might implement --list one day
	- zlib API addition
2003-12-23 05:16:31 +00:00
dsl e2be127214 Use an array of pointers to menu definitions so the array can grow without
leaving code having stale pointers to menu ites.
2003-12-21 21:42:48 +00:00
kleink 4bd5e026a4 Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).
2003-12-20 23:41:38 +00:00
jmc 1664a90985 Fixes for PR#18573 (make -j not stopping correctly on error).
Using -e in sh/ksh to stop on error doesn't work with grouped commands. At
least for any SUSE compliant sh(1). Instead, extend the Shell struct and add
errOut which provides a template to use to check error status from commands.
2003-12-20 00:18:22 +00:00
jmc 214b8c2d1e Add -f arguments into usage 2003-12-19 19:57:18 +00:00
jmc 66e9f52056 Start on adding support for -f flags as ldd did for a.out. PR#17786.
First, parse arguments correctly so -f isn't taken as a file name. For ELF
don't do anything yet, but for a.out compat, pass formats along when
exec'ing binary.
2003-12-19 19:56:56 +00:00
lukem 69e6f0aa33 -n is ignored for auto-fetch transfers 2003-12-19 03:46:02 +00:00
jmc be1cdb8652 When looking for a makefile and curdir != objdir (i.e. working inside of an
objdir) try opening the file from curdir and if that fails try from objdir.
This way .depend files get picked up via their full path names rather than
just .depend so vars like PARSEDIR, PARSEFILE are then set correctly. This
fixes PR#13289 reporting incorrect pathnames for .depends with errors in
them
2003-12-18 22:36:18 +00:00
heas 16e5c22815 Initialize uid and gid so that the owner/group is not inadvertantly changed
when only one of -g or -o are given by the super-user and -g works for others.
2003-12-16 20:51:57 +00:00
skrll eba79970b1 Remove the -fno-gcse-lm hack now that it is no longer needed. 2003-12-15 14:57:54 +00:00
chs 1a686b2ea3 rearrange lib stuff so that these link on non-shared-lib platforms. 2003-12-13 22:07:35 +00:00
dyoung 4758291178 Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
  distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
  9 out of 10 experts agree that it is ludicrous to build w/
  KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
  MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly.  That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles.  While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
2003-12-11 09:46:26 +00:00
lukem d11f9c3d61 Don't warn about "ignored setsockopt" failures unless debugging is
enabled.  Suggested by Todd Vierling.

Allow empty passwords in ftp://user:@host/file auto-fetch URLs,
per RFC 1738.  Requested by Simon Poole.

Update version.
2003-12-10 12:34:28 +00:00
agc 7db1d33cba Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
dmcmahill e399647d5d Use grep in favor of egrep in a few places. The pattern being searched
for is just a string and some egrep's (notably the Solaris one) don't like
the -w option.
2003-12-08 23:57:13 +00:00
wiz 15dcc3baa6 Drop trailing spaces. 2003-12-07 20:48:25 +00:00
dsl 2bd419cb33 Add back 'on error' that got deleted by mistake. 2003-12-07 20:46:44 +00:00
dsl 7da2fe51b3 Add a -Dg3 which outputs the 'input graph' only on error exit.
Lets you see the wood for the trees...
2003-12-07 20:30:28 +00:00