Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b75f7d

Browse files
committed
Remove zero-byte gif files from generated html docs
1 parent babc5ec commit 5b75f7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ HTMLPKGFILES=*.html */*.css */*.html */*.gif */*.png */*.txt
620620

621621
html-$(RELEASE).tar: $(ALLHTMLFILES) $(HTMLCSSFILES)
622622
mkdir Python-Docs-$(RELEASE)
623+
-find html -name '*.gif' -size 0 | xargs rm -f
623624
cd html && tar cf ../temp.tar $(HTMLPKGFILES)
624625
cd Python-Docs-$(RELEASE) && tar xf ../temp.tar
625626
rm temp.tar

0 commit comments

Comments
 (0)