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