summaryrefslogtreecommitdiffstats
path: root/usr.bin/xinstall
Commit message (Collapse)AuthorAgeFilesLines
...
* Prepare for mdoc(7)NG.ru2000-12-191-0/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+4
|
* Use the correct timestamp for the -C -p case when the comparison fails.bde2000-10-081-2/+2
| | | | | A garbage timestamp was used for at least installing /dev/null with -C -p when the target doesn't already exist.
* Switch over to using the new fflagstostr and strtofflags library calls.joe2000-06-172-3/+2
|
* Add DIAGNOSTICS section namecharnier2000-03-261-3/+4
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-2/+4
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Revert part of the last commit, remove {g|s}etflags from the libcjoe2000-02-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh
* Historically file flags (schg, uschg, etc) have been converted fromjoe2000-01-272-4/+1
| | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;)
* Actually remove unrequired SRCS.bde2000-01-051-1/+0
|
* Added missing DPADD's. Removed unrequired SRCS's.joe2000-01-011-0/+1
| | | | Obtained from: bde
* Moved flags_to_string and string_to_flags into libutil. It's used injoe1999-12-301-2/+3
| | | | many places nowadays.
* Add "-v" to usage().obrien1999-12-061-3/+3
|
* Document the "-v" flag. [It was like that when I got here.. honestly.]obrien1999-12-061-2/+16
|
* -Wall fixes.billf1999-09-271-0/+1
| | | | Submitted by: nrahlstr
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Free memory from setmode.imp1998-12-161-1/+2
| | | | Obtained from: OpenBSD
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-2/+2
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* fchflags(8) -> fchflags(2)peter1998-06-101-3/+3
| | | | | | Submitted by: Kenneth Merry <ken@plutotech.com> Also, while here, mention that other FS's don't do flags.
* Treat an EOPNOTSUPP from fchflags() as a non-fatal case. Only warn aboutpeter1998-06-022-10/+25
| | | | | | | | | | | | | | it if flags were explicitly specified on the command line. Do not warn if we were merely trying to preserve flags or remove UF_NODUMP. NFS does not support flags. I'm not sure that this is ideal, but it should do for now. Installing a plain file onto a NFS server must work, we used to silently ignore the attempt. Doing a binary install looses the flags anyway since cpio doens't preserve them with the cdrom/network images. XXX make world should not use flags or chown/chgrp in the obj/tmp area. This is based on a suggestion from Ken Merry <ken@plutotech.com>.
* Converted to Lite2 mount interface - don't use numeric filesystembde1998-01-201-17/+13
| | | | | | | | | | | | types. The NetBSD compatibility cruft was more correct for -current than FreeBSD's own code. It just used NetBSD #defines instead of string literals for the filesystem names. NetBSD's MOUNT_UFS is "ffs", so using a literal "ufs" gives wrong results, but this is unimportant, especially for bootstrapping. Fixed style bugs in trymmap(). Fixed some disordered declarations.
* Change MAP_FAILED to type void *.alex1998-01-131-3/+3
| | | | Typo fix.
* Add an option (-M) to install to disable use of mmap(2). This is kindapeter1998-01-112-7/+14
| | | | | | handy at the moment with -current's mmap+unlink interactions.. The problems seem worst when using INSTALL="install -C" in /etc/make.conf. This could well come in handy in the future too.
* Allow install to build from FreeBSD source using NetBSD tools andjb1998-01-091-1/+9
| | | | | headers during the port of FreeBSD to a NetBSD supported architecture. FreeBSD needs to be able to install itself from very early on.
* 1) Create intermediate directories with 755, not 777ache1997-10-281-4/+5
| | | | | 2) Exit with error diagnostic if file exists but not a directory (-d) 3) Do chmod independently of chown (-d)
* 1) Ignore -C with -d, not fail (for $(INSTALL) macro from /etc/make.conf)ache1997-10-271-9/+9
| | | | | | | 2) When uid/gid not specified, not try to set 0:0 owner, just do nothing. It makes possible to use install -d by users without setting their uid:gid each time. 3) Be more specific where install_dir fails
* When calling strip, temporarily close the file, call strip and thenpeter1997-09-141-2/+10
| | | | | | | | reopen it after strip has finished. This makes it work when /usr/bin/strip replaces the file rather than doing an in-place edit (such as the binutils-2.8 strip, which is a variation of objcopy). This is necessary if install(1) and strip(1) are going to cooperate on an ELF system.
* Uncomment sccsid string and enclose it inside #if 0/#endif.charnier1997-08-272-10/+11
| | | | Cosmetic in man page.
* Bootstrap aid from older releases.. 'make world' can't build xinstallpeter1997-05-241-1/+6
| | | | | | | | until the includes are installed, and it doesn't install the includes until xinstall is built (the previous xinstall binary may not have -C). As a bandaid, define MAP_FAILED ourselves if <sys/mman.h> didn't. Perhaps it would be safer to simply disable mmap if all the prerequisites are not there.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Sweep through the tree fixing mmap() usage:alex1997-01-161-5/+5
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sync usage line to man page, per style(9).imp1996-10-011-3/+4
| | | | Pointed out by: Bruce Evans <bde@zeta.org.au>
* Submitted by: Bruce Evansimp1996-09-291-5/+5
| | | | | | Remove -S for the install usage message Make the install usage message < 80 columns wide Place the dodir declaration in order.
* Implement -d in install. Update the man page to reflect this change.imp1996-09-292-12/+73
|
* Use EX_* exit values, from NetBSDimp1996-09-281-5/+9
|
* Changed 'd' to 'D' in getopt arg too.bde1996-09-241-2/+2
|
* Per discussions in -currentimp1996-09-242-5/+5
| | | | | | | | - Change the debug flag from -d to -D to avoid conflict with other install programs. - Update man page to reflect this - Update usage string -d meaning creat directory is specifically not implemented by these changes.
* Be more careful with mmap. If it fails, fall back to a plain compare orpeter1996-09-051-11/+27
| | | | | | | | | copy. Dont leave stray INS@xxxx temp files around, especially when installing something less than 8MB and the destination runs out of space, etc. It still doesn't clean up the temp files on SEGV or other signals etc.
* accidently removed the "dont compare > 8MB files hack".peter1996-09-051-33/+39
| | | | didn't rewind the files after the read()s in the non-mmap compare.
* Only attempt to mmap() files from a ufs or cd9660 fs for comparing orpeter1996-09-051-4/+45
| | | | | | | | installing. mmap'ing stuff over a nfs mount took out my machine during a 'make world' last night while I was asleep. I started out with a list of fs's to avoid, when I realised that I really didn't know which ones were safe with mmap, so I went for the ones I knew and implemented a fallback compare.
* Add a simple -v (verbose) option that allows you to see when -C actuallypeter1996-08-121-5/+12
| | | | | | | | | | installs something. This is not 100% right, since it has a false hit when install -C snaps hard links. Also, run strip(1) from the $PATH, otherwise you need a special version of install to install (say) elf binaries which have a different strip. With JDP's elfkit, the layout of the path determines which binary format you are generating.
* Made strip failures fatal. This fixes PR 1328.bde1996-06-231-2/+4
|
* Don't reference NULL pointers if owner and/or group are omitted.joerg1996-04-081-3/+5
| | | | Pointed out by: somebody on the mailing list who's name i forgot
* Submitted by: archie@tribe.comjulian1996-04-062-6/+78
| | | | | | allow the user to install using a Numeric GID or UID. this brings it in to line with chgrp and chown, ans is required by some people using FreeBSD in a product.
* Fix a couple of typos.mpp1996-03-111-3/+3
| | | | Submitted by: Philippe Charnier <charnier@limrr.fr>
* Kludge-fix for a specific instance of bin/517.pst1996-02-081-3/+3
| | | | | | | The real fix requires changes to getpwent(3) and friends and getgrent(3) and friends. Submitted by: Tim Wilkinson
* Fix a bunch of spelling errors in a bunch of man pages.mpp1996-01-301-3/+3
|
* Add options -C (same as -c except for preserving the modificationbde1995-10-092-78/+265
| | | | | | | | | | | | time of the target if the target file is the same as the source), -d (debug), and -p (same as -C except for preserving the modification time of the source if the target doesn't exists or is different from the source. Use library err() functions instead of our own and pass them better exit codes. Submitted by: wollman (and changed a lot by me)
* Backed out change in rev 1.2.dg1995-08-271-1/+1
|
OpenPOWER on IntegriCloud