From dc5b93cc90931e90c6005bcb6bbc0bae166cab2c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 3 Feb 2024 01:03:34 +0100 Subject: Strip binaries if possible --- make.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make.c b/make.c index 266b150..cbbb6a2 100644 --- a/make.c +++ b/make.c @@ -84,6 +84,10 @@ main(int argc, char **argv) man = mkoutpath("/share/man/man1"); cmdadd(&c, "mkdir", "-p", bin, man); CMDPRC(c); + if (binexists("strip")) { + cmdadd(&c, "strip", "--strip-all", "grab", "git-grab"); + CMDPRC(c); + } cmdadd(&c, "cp", "grab", "git-grab", bin); CMDPRC(c); cmdadd(&c, "cp", "man/grab.1", "man/git-grab.1", man); -- cgit v1.2.3