]> git.parisson.com Git - telemeta.git/commitdiff
eztelemeta: add a 'make list' target to check the files that are and aren't distributed
authorolivier <>
Thu, 16 Apr 2009 18:16:59 +0000 (18:16 +0000)
committerolivier <>
Thu, 16 Apr 2009 18:16:59 +0000 (18:16 +0000)
tools/eztelemeta/Makefile

index 0567403d39641d6aa496bfa1fcee1c1b58025ec1..c9b9f5c0484ff2c54279efb69e60b507e072b4de 100644 (file)
@@ -54,4 +54,19 @@ clean:
 VERSION:
        echo $(VERSION) > $@
 
+.PHONY: list
+list: doc $(DISTFILES)
+       @echo "------------------"
+       @echo "Distributed files:"
+       @echo "------------------"
+       @echo $(DISTFILES) | tr ' ' '\n' > cmp.tmp
+       @cat cmp.tmp
+       @echo
+       @echo "--------------------"
+       @echo "Undistributed files:"
+       @echo "--------------------"
+       @find -type f | grep -v svn | grep -v 'swp$$' | sed 's/^\.\///' >> cmp.tmp
+       @cat cmp.tmp | sort | uniq -u | grep -v 'cmp.tmp'
+       @rm cmp.tmp
+
 # vim: set noexpandtab: ts=2: sw=2: