summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-03 02:03:12 +0200
committerhut <hut@lavabit.com>2010-04-03 02:03:12 +0200
commit30ae21371fbce8e34bf29ea32e6437f08103c54a (patch)
treeff3ea487f471ad94a9739aa73408af271219f77e
parenta7772cc660b6510d3613674ce2f99493fd08e550 (diff)
downloadranger-30ae21371fbce8e34bf29ea32e6437f08103c54a.tar.gz
Makefile: improvements
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2acb95a1..f3e00ee8 100644
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@ cleandoc:
 	test -d $(DOCDIR) && rm -f -- $(DOCDIR)/*.html
 
 clean:
-	find . -regex [^\ ]\*.py[co]$ | xargs rm -f --
+	find . -regex \*.py[co]\$$ -exec rm -f -- {} \;
 
 test:
 	./all_tests.py 1
@@ -89,4 +89,4 @@ commit: test
 	@git citool
 
 snapshot:
-	git archive HEAD | gzip > $(NAME)-$(VERSION)-$(shell git rev-list HEAD | head -n 1 | cut -b 1-8).tar.gz
+	git archive HEAD | gzip > $(NAME)-$(VERSION)-$(shell git rev-parse HEAD | cut -b 1-8).tar.gz