From ea3477be372b3e24190762de83cdca4487c7203d Mon Sep 17 00:00:00 2001 From: Balint Molnar Date: Wed, 29 May 2024 09:57:34 +0200 Subject: [PATCH] Exclude bats and wasm3/platform dirs from debian and rpm build (#228) --- Makefile | 4 ++-- debian/source/options | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 708b1d9f..016df2d8 100644 --- a/Makefile +++ b/Makefile @@ -187,7 +187,7 @@ deb: $(eval PACKAGE_VERSION := $(shell dpkg-parsechangelog -S Version | cut -d'-' -f1)) make clean rm -f ../camblet-driver_$(PACKAGE_VERSION).orig.tar.xz - tar --exclude='./.git' --exclude='linux' --exclude='rpmbuild' --exclude 'debian' -cvJf ../camblet-driver_$(PACKAGE_VERSION).orig.tar.xz . + tar --exclude='./.git' --exclude='third-party/wasm3/platforms' --exclude='third-party/wasm3/test' --exclude='test/bats' --exclude='test/test_helper/bats-assert' --exclude='test/test_helper/bats-support' --exclude='linux' --exclude='rpmbuild' --exclude 'debian' -cvJf ../camblet-driver_$(PACKAGE_VERSION).orig.tar.xz . dpkg-buildpackage -tc rpm: @@ -195,7 +195,7 @@ rpm: make clean rm -f rpmbuild/SOURCES/camblet-driver-*.tar.xz mkdir -p rpmbuild/SOURCES - tar --exclude='./.git' --exclude='linux' --exclude='rpmbuild' --exclude 'debian' -cvJf rpmbuild/SOURCES/camblet-driver-$(PACKAGE_VERSION).tar.xz . + tar --exclude='./.git' --exclude='third-party/wasm3/platforms' --exclude='third-party/wasm3/test' --exclude='test/bats' --exclude='test/test_helper/bats-assert' --exclude='test/test_helper/bats-support' --exclude='linux' --exclude='rpmbuild' --exclude 'debian' -cvJf rpmbuild/SOURCES/camblet-driver-$(PACKAGE_VERSION).tar.xz . rpmbuild -v -ba --define '_topdir ${PWD}/rpmbuild/' rpmbuild/SPECS/camblet-driver.spec .PHONY: bump_version diff --git a/debian/source/options b/debian/source/options index d522c07a..356dead2 100644 --- a/debian/source/options +++ b/debian/source/options @@ -1 +1,6 @@ extend-diff-ignore = "rpmbuild/" +extend-diff-ignore = "third-party/wasm3/platforms" +extend-diff-ignore = "third-party/wasm3/test" +extend-diff-ignore = "test/bats" +extend-diff-ignore = "test/test_helper/bats-assert" +extend-diff-ignore = "test/test_helper/bats-support"