diff options
author | obrien <obrien@FreeBSD.org> | 2006-03-06 21:52:59 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2006-03-06 21:52:59 +0000 |
commit | ed90ac4a12b05ea7180c8f2fc19b2ea3b9925e29 (patch) | |
tree | 561d45247aa8eed1207aaf99639b5fd94febaeaa /usr.bin/xinstall | |
parent | cb3143e5c0bd9a1a6abf4bf5e694a4afe98b39f8 (diff) | |
download | FreeBSD-src-ed90ac4a12b05ea7180c8f2fc19b2ea3b9925e29.zip FreeBSD-src-ed90ac4a12b05ea7180c8f2fc19b2ea3b9925e29.tar.gz |
Add an override (DONTSTRIP) so that one can easily install debugable
binaries when one cannot easily edit a package's Makefiles and/or
configure scripts.
Diffstat (limited to 'usr.bin/xinstall')
-rw-r--r-- | usr.bin/xinstall/install.1 | 9 | ||||
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/usr.bin/xinstall/install.1 b/usr.bin/xinstall/install.1 index 9e2c2cb..197bea5 100644 --- a/usr.bin/xinstall/install.1 +++ b/usr.bin/xinstall/install.1 @@ -189,6 +189,15 @@ environment variable and if present, uses the assigned value as the program to run if and when the .Fl s option has been specified. +.Pp +If the +.Ev DONTSTRIP +environment variable is present +.Nm +will ignore any specification of the +.Fl s +option. +This is mainly for use in debugging The FreeBSD Ports Collection. .Sh FILES .Bl -tag -width INS@XXXX -compact .It Pa INS@XXXX diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 58cdcca..d0038de 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -174,6 +174,11 @@ main(int argc, char *argv[]) usage(); } + if (getenv("DONTSTRIP") != NULL) { + warnx("DONTSTRIP set - will not strip installed binaries"); + dostrip = 0; + } + /* must have at least two arguments, except when creating directories */ if (argc == 0 || (argc == 1 && !dodir)) usage(); |