Replace BitKeeper dist target with Git archive

This commit is contained in:
Mario Fetka
2026-04-28 23:08:29 +02:00
parent beb035b65d
commit 8345f2d85f

View File

@@ -90,14 +90,11 @@ dist: tgz
make all
tgz:
if [ -d BitKeeper ]; then \
mkdir ncpfs-$(VERSION) && \
bk export -tplain ncpfs-$(VERSION) && \
tar cvf - ncpfs-$(VERSION) | (cd .. && gzip -9 > $(DISTFILE)) &&
rm -rf ncpfs-$(VERSION); \
if [ -d .git ]; then \
git archive --format=tar --prefix=ncpfs-$(VERSION)/ HEAD | gzip -9 > ../$(DISTFILE); \
else \
make distclean; \
(cd ..; tar cvf - $(SRCDIR) | gzip -9 > $(DISTFILE)); \
(cd ..; tar --exclude='.git' -cvf - $(SRCDIR) | gzip -9 > $(DISTFILE)); \
fi
slackware: