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

Skip to content

Commit b1cd771

Browse files
committed
pdf-$(VERSION).tar.gz: If ref/ref.pdf exists, include it in the tarball
along with the others. html-$(VERSION).tar.gz: Change the wildcard for picking up GIFs a little to avoid changes in what LaTeX2HTML generates.
1 parent 71472a5 commit b1cd771

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,11 @@ l2hapi: api.dvi manual.perl python.perl
267267
info-$(VERSION).tar.gz: $(INFOFILES)
268268
tar cf - python-???.info* | gzip -9 >$@
269269

270+
# This snags a PDF version if available, but doesn't fail if not.
270271
pdf-$(VERSION).tar.gz: $(PDFFILES)
272+
if [ -f ref/ref.pdf ] ; then cp ref/ref.pdf . ; else true ; fi
271273
tar cf - ???.pdf | gzip -9 >$@
274+
if [ -f ref.pdf ] ; then rm ref.pdf ; else true ; fi
272275

273276
postscript-$(VERSION).tar.gz: $(PSFILES) ref/ref.ps
274277
cp ref/ref.ps .
@@ -277,7 +280,7 @@ postscript-$(VERSION).tar.gz: $(PSFILES) ref/ref.ps
277280

278281
tarhtml:
279282
@echo "Did you remember to run makeMIFs.py in the ref subdirectory...?"
280-
tar cf - index.html ???/???.css ???/*.html lib/*.gif icons/*.* \
283+
tar cf - index.html ???/???.css ???/*.html */*.gif \
281284
| gzip -9 >html-$(VERSION).tar.gz
282285

283286
# convenience targets:

0 commit comments

Comments
 (0)