From: smckown Date: Wed, 15 Apr 2009 16:55:40 +0000 (+0000) Subject: Exclude .git directory in build results. X-Git-Tag: debian/0.11.2-5.2tmi~21 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=0a73b3bfb4650026d47025cc3adcc5eb576ca78c Exclude .git directory in build results. --- diff --git a/Makefile b/Makefile index d440794..2b77fc1 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ $(BUILD)/src-stamp: $(wildcard src/*) rm -rf $(BUILD)/$(DEBSRC) cp -a src $(BUILD)/$(DEBSRC) find $(BUILD)/$(DEBSRC) -name .svn -type d -exec rm -rf "{}" ";" 2>/dev/null || exit 0 + rm -rf $(BUILD)/$(DEBSRC)/.git || exit 0 tar -C $(BUILD) -czf $(BUILD)/$(TARFILE) $(DEBSRC) touch $@ @@ -51,7 +52,7 @@ $(BUILD)/src-stamp: $(wildcard src/*) configure: $(BUILD)/debian-stamp $(BUILD)/debian-stamp: $(BUILD)/src-stamp $(wildcard debian.in/*) mkdir -p $(BUILD)/$(DEBSRC)/debian - rsync --quiet -avz --exclude=.svn/ debian.in/ $(BUILD)/$(DEBSRC)/debian/ + rsync --quiet -avz --exclude=.svn/ --exclude=.git/ debian.in/ $(BUILD)/$(DEBSRC)/debian/ perl -i -pe 's/xxPACKAGExx/$(PACKAGE)/g' $(BUILD)/$(DEBSRC)/debian/* perl -i -pe 's/xxROOTNAMExx/$(ROOTNAME)/g' $(BUILD)/$(DEBSRC)/debian/* perl -i -pe 's/xxPKGVERxx/$(PKGVER)/g' $(BUILD)/$(DEBSRC)/debian/*