[hackers] [sbase][PATCH] Makefile: copy scripts/getconf.sh in dist recipe

From: Eduardo Santos <eduardo.experimental_AT_gmail.com>
Date: Thu, 28 Aug 2025 12:26:20 -0300

Building from the tarball fails:

    curl --no-progress-meter https://dl.suckless.org/sbase/sbase-0.1.tar.gz \
        | tar -xz --strip-components=1 \
        && make >/dev/null
    ar: creating libutf.a
    ar: creating libutil.a
    /bin/sh: line 1: scripts/getconf.sh: No such file or directory
    make: *** [Makefile:221: getconf.h] Error 127

Include the missing getconf.sh script in the tarball. Prefer two
fork(2)s to cp rather than unnecessarily increasing the tarball's size
by including the whole scripts directory.

Signed-off-by: Eduardo Santos <eduardo.experimental_AT_gmail.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2d409ff..273c899 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -236,8 +236,9 @@ sbase-box-uninstall: sbase-box proto
 	scripts/uninstall proto
 
 dist: clean
-	mkdir -p sbase
+	mkdir -p sbase/scripts
 	cp -R LICENSE Makefile README TODO config.mk *.c *.1 *.h libutf libutil sbase
+	cp scripts/getconf.sh sbase/scripts
 	mv sbase sbase-$(VERSION)
 	tar -cf sbase-$(VERSION).tar sbase-$(VERSION)
 	gzip sbase-$(VERSION).tar
-- 
2.51.0
Received on Thu Aug 28 2025 - 17:26:20 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 28 2025 - 17:36:37 CEST