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.
This commit is contained in:
David E. O'Brien 2006-03-06 21:52:59 +00:00
parent f4ff12f3be
commit 858494e461
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156363
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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();