Commit Graph

94 Commits

Author SHA1 Message Date
hubertf
a9539cd876 Add a -b(ackup) flag to move any existing file(s) aside by renaming
them to file.old instead of simply deleting them. A different backup
suffix may be chosen with the -B option's argument.
1999-01-25 01:42:57 +00:00
christos
2f6a33d29c char -> unsigned char 1998-12-20 15:07:46 +00:00
mrg
14a817a516 create a "stat_flags.h" to go with stat_flags.c 1998-10-10 07:38:22 +00:00
wsanchez
438823cc1c Add new option -S, which is like -s, but takes a string of options to pass to strip,
rather than "-s". For example:
	install -S "-i -s symbolfile" foo /usr/bin/foo
  Invokes:
	/bin/sh -c "strip -i -s /usr/bin/foo"
  This is needed, because we need different strip options for dynamic libraries and
  Mach-O bundles than for executables; our strip supports more directed stripping.
  /bin/sh is used in this case, to parse the arguments.

Don't bother mmap()ing files of zero length. Was a workaround for a bug in our mmap(),
  which didn't get along with such files, but makes sense anyway.
1998-10-08 02:12:51 +00:00
erh
ecf84c1f19 Add -p flag to usage(). 1998-10-01 18:23:52 +00:00
christos
710d4c153b add -p flag, similar to cp(1) 1998-09-28 08:16:15 +00:00
mycroft
4462053ab3 Fill in missing (default) mmap(2) flags. 1998-02-20 09:27:18 +00:00
thorpej
e00e57ff80 Delete extra RCS ID. 1997-12-30 22:31:17 +00:00
chuck
6bfc234bf3 use MAP_PRIVATE for mmap flags, not the non-standard MAP_FILE (aka 0) 1997-12-01 21:11:39 +00:00
tv
070c43b239 accept -c silently with -d; fixes GNU autoconf (among others) that assume
you can use -c with -d
...but this is NOT a reason for those of you making install procedures
to think this behaviour is `correct'... <grin>
1997-11-30 22:20:00 +00:00
thorpej
e3a9b9d0ca In strip():
- Use the saved errno to print the error message if the vfork() fails.
- In the child, if the execl() fails, use warn()/_exit(), not err(),
  as the latter is not safe in the presence of a Real vfork().
1997-10-27 23:16:34 +00:00
lukem
42feae592b getopt returns -1 not EOF, fix .Nm 1997-10-20 03:32:25 +00:00
mrg
6e4783d48e WARNSify; deprecate register; clean up .Nm 1997-10-19 14:42:36 +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
gwr
012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +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
christos
8913266731 PR/3445: NAKAJIMA Yoshihiro: Typo fix 1997-04-03 15:28:06 +00:00
christos
3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +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
mycroft
2c450c6cc2 Remove kluge for GCC bug on m68k. 1997-03-12 18:13:17 +00:00
thorpej
d7fa8cdb0d Use a slightly more sane way to cheat around XXX_BROKEN_GCC on the m68k.
The old way was more complex than necessary, and buggy, as pointed out
by Bruce Albrecht <bruce@zuhause.mn.org> in PR #3309.
1997-03-10 17:29:05 +00:00
fvdl
ff19eb6a74 warnx --> warn, warnx wasn't needed anymore after previous change
(pointed out by enami tsugutomo)
1997-03-10 14:14:37 +00:00
mouse
ee6a5b2cd6 alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
fvdl
720565ab4f Correct error in previous. 1997-03-06 16:09:45 +00:00
fvdl
3ee3460f02 Don't bail out when chflags() fails with EOPNOTSUPP. Fixes PR #3288 1997-03-05 23:48:47 +00:00
thorpej
3dc69d90b9 XXX Kludge to make this compile with large MAXBSIZE until the
XXX GCC bug it tickles is fixed.
1996-12-09 20:03:19 +00:00
thorpej
150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
jonathan
bdb182a2cc Change xinstall to work with strip from GNU binutils, for mips and alpha ports.
When using a strip that uses a temp file and moves that to the target,
unlinking the original, install would set the modes of the
original (now unlinked) file, not the new stripped one.
Fixed by re-opening the fd used for fchown/chmod after stripping.
1995-12-20 10:25:17 +00:00
ghudson
558fb11b35 Accept numeric uid or gid for -o and -g flags, for consistency with
chown and chgrp.
1995-08-10 04:20:57 +00:00
cgd
9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
jtc
8383e7d727 added prototype for install_dir() 1994-12-20 01:24:38 +00:00
jtc
9527909e88 added exit(1) to usage() 1994-12-18 22:05:40 +00:00
jtc
12ee8ea259 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
Changed to use err(),errx(),warn(),warnx().
1994-11-14 04:57:16 +00:00
cgd
0a2c7c7b35 be a bit more careful abotu what we can stat()/mkdir() 1994-10-02 21:32:31 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft
b465cf4697 Add RCS identifiers. 1993-07-30 22:11:51 +00:00
mycroft
78f5c43040 Use ${COPY}, not -c for install. 1993-07-18 19:06:45 +00:00
jtc
2de36c6cb2 Added -d option to install 1993-06-11 18:30:46 +00:00
mycroft
d01e9218c3 Define realinstall' target, not install', and let bsd.prog.mk do dependencies. 1993-04-26 03:26:55 +00:00
cgd
c050664467 make install copy, rather than move, the binary. 1993-04-09 09:47:42 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00