rpmdist.mk: Next adaption of exclude pattern

This commit is contained in:
Jan Lindemann 2004-11-30 00:14:31 +00:00 committed by Jan Lindemann
commit 533367a58c

View file

@ -86,7 +86,7 @@ cpfiles.dist:
%.tar.gz: cpfiles.dist cpmod.dist
mkdir -p $(DIST_PCKG_DIR)
tar -czvf $@ -C $(dir $(DIST_SRC_DIR)) $(notdir $(DIST_SRC_DIR)) \
$(addprefix --exclude=,"$(basename $(shell find . -name *.in | sed 's%\./%*%'))")
$(addprefix --exclude=,$(patsubst %,"%",$(basename $(shell find . -name *.in | sed 's%\./%*/%; s%\(.*\)%\1%g'))))
%.src.rpm: %.tar.gz
rpm -ts $<