From 0a73b3bfb4650026d47025cc3adcc5eb576ca78c Mon Sep 17 00:00:00 2001 From: smckown Date: Wed, 15 Apr 2009 16:55:40 +0000 Subject: [PATCH] Exclude .git directory in build results. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/* -- 2.39.2