From 355dc9763ab80ae32aeb8356e586a59d3ffdfc2d Mon Sep 17 00:00:00 2001 From: hung-le Date: Thu, 7 Nov 2019 15:16:18 -0800 Subject: [PATCH] https://github.com/csingley/ofxtools/issues/73 On my mac, find does not know about -regex flag. I am proposing the following change to find find . -name '*\.pyc' -exec rm '{}' \; find . -name '.*~' -exec rm '{}' \; and add a -f flag in case file coverage.xml is not there --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 41082050..870dca35 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,13 @@ test: python `which nosetests` -dsv --nologcapture --with-coverage --cover-package ofxtools tests/*.py clean: - find -regex '.*\.pyc' -exec rm {} \; - find -regex '.*~' -exec rm {} \; + find . -name '*\.pyc' -exec rm '{}' \; + find . -name '.*~' -exec rm '{}' \; + #find -regex '.*\.pyc' -exec rm {} \; + #find -regex '.*~' -exec rm {} \; rm -rf reg-settings.py rm -rf MANIFEST dist build *.egg-info - rm coverage.xml + rm -f coverage.xml install: make clean