1
0
mirror of git://git.suckless.org/sbase synced 2025-03-19 17:46:01 +00:00

build: Avoid using numbers in dist target directory

We are using a wildcard to copy things into the directory used to
build the distribution tar file, and this directory can contain
the .1 extension used in the *.1 wildcard used to copy the man
pages. Also, changed the cp command line from -r to -R because
-r is not specified in POSIX.
This commit is contained in:
Roberto E. Vargas Caballero 2025-03-13 12:06:12 +01:00
parent 279cec8889
commit 9b71b697fe

View File

@ -235,8 +235,9 @@ sbase-box-uninstall: sbase-box proto
scripts/uninstall proto
dist: clean
mkdir -p sbase-$(VERSION)
cp -r LICENSE Makefile README TODO config.mk *.c *.1 *.h libutf libutil sbase-$(VERSION)
mkdir -p sbase
cp -R LICENSE Makefile README TODO config.mk *.c *.1 *.h libutf libutil sbase
mv sbase sbase-$(VERSION)
tar -cf sbase-$(VERSION).tar sbase-$(VERSION)
gzip sbase-$(VERSION).tar
rm -rf sbase-$(VERSION)