kiss: Add environment variable to toggle stripping.

This commit adds KISS_STRIP to allow stripping to be controlled at
runtime for all staged packages. This is also handy when temporarily
needing debugging symbols for a given piece of software.

Defaults to '1', set to '0' to disable stripping.

Example:

KISS_STRIP=0 kiss b zlib
This commit is contained in:
Dylan Araps 2020-07-24 01:42:04 +03:00
parent 8848d3f1d3
commit 863f79ca38
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -376,7 +376,7 @@ pkg_order() {
pkg_strip() {
# Strip package binaries and libraries. This saves space on the system as
# well as on the tarballs we ship for installation.
[ -f "$mak_dir/$pkg/nostrip" ] && return
[ -f "$mak_dir/$pkg/nostrip" ] || [ "$KISS_STRIP" = 0 ] && return
log "$1" "Stripping binaries and libraries"