From 9093c340af4b8e4f749d83770d3d0968839846a1 Mon Sep 17 00:00:00 2001 From: "yusuke.shinyama.dummy" Date: Tue, 21 Jul 2009 14:23:23 +0000 Subject: [PATCH] 20090721 git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@121 1aa58f4a-7d42-0410-adbc-911cccaed67c --- MANIFEST | 42 ++++++++++++++++++++++++++++++++++++++++++ Makefile | 34 +++++++++++++++------------------- README.html | 10 +++++----- pdfminer/pdfinterp.py | 2 +- setup.py | 21 +++++++++++++-------- 5 files changed, 76 insertions(+), 33 deletions(-) create mode 100644 MANIFEST diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..03641c0 --- /dev/null +++ b/MANIFEST @@ -0,0 +1,42 @@ +TODO +Makefile +README.html +setup.py +pdfminer/Makefile +pdfminer/__init__.py +pdfminer/arcfour.py +pdfminer/ascii85.py +pdfminer/cmap.py +pdfminer/converter.py +pdfminer/fontmetrics.py +pdfminer/glyphlist.py +pdfminer/latin2ascii.py +pdfminer/latin_enc.py +pdfminer/layout.py +pdfminer/lzw.py +pdfminer/pdfcolor.py +pdfminer/pdfdevice.py +pdfminer/pdffont.py +pdfminer/pdfinterp.py +pdfminer/pdfparser.py +pdfminer/pdftypes.py +pdfminer/psparser.py +pdfminer/pycdb.py +pdfminer/rijndael.py +pdfminer/utils.py +tools/Makefile +tools/dumppdf.py +tools/pdf2txt.py +tools/pdf2html.cgi +tools/conv_afm.py +tools/prof.py +samples/Makefile +samples/jo.pdf +samples/simple1.pdf +samples/simple2.pdf +samples/dmca.pdf +samples/f1040nr.pdf +samples/i1040nr.pdf +samples/kampo.pdf +samples/naacl06-shinyama.pdf +samples/nlp2004slides.pdf diff --git a/Makefile b/Makefile index 6630b23..68a1fa7 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,16 @@ -# Makefile for pdfminer +## Makefile (for maintainance purpose) +## PACKAGE=pdfminer +PREFIX=/usr/local SVN=svn -GNUTAR=tar PYTHON=python -PREFIX=/usr/local -TMPDIR=/tmp -VERSION=`$(PYTHON) $(PACKAGE)/__init__.py` -DISTNAME=$(PACKAGE)-dist-$(VERSION) -DISTFILE=$(DISTNAME).tar.gz +RM=rm -f +CP=cp -f -CONV_CMAP=$(PYTHON) pdfminer/cmap.py +VERSION=`$(PYTHON) $(PACKAGE)/__init__.py` +DISTFILE=$(PACKAGE)-$(VERSION).tar.gz all: @@ -19,7 +18,8 @@ install: $(PYTHON) setup.py install --prefix=$(PREFIX) clean: - -rm -rf build + -$(PYTHON) setup.py clean + -$(RM) -r build dist -cd $(PACKAGE) && $(MAKE) clean -cd tools && $(MAKE) clean -cd samples && $(MAKE) clean @@ -27,20 +27,16 @@ clean: test: cd samples && $(MAKE) test -# Maintainance: commit: clean $(SVN) commit check: cd $(PACKAGE) && make check -dist: clean - $(SVN) cleanup - $(SVN) export . $(TMPDIR)/$(DISTNAME) - $(GNUTAR) c -z -C$(TMPDIR) -f $(TMPDIR)/$(DISTFILE) $(DISTNAME) --dereference --numeric-owner - -rm -rf $(TMPDIR)/$(DISTNAME) +dist/$(DISTFILE): clean + $(PYTHON) setup.py sdist -WEBDIR=$$HOME/Site/unixuser.org/python/pdfminer -publish: dist - cp $(TMPDIR)/$(DISTFILE) $(WEBDIR) - cp README.html $(WEBDIR)/index.html +WEBDIR=$$HOME/Site/unixuser.org/python/$(PACKAGE) +publish: dist/$(DISTFILE) + $(CP) dist/$(DISTFILE) $(WEBDIR) + $(CP) README.html $(WEBDIR)/index.html diff --git a/README.html b/README.html index 08fb7f6..b2076f3 100644 --- a/README.html +++ b/README.html @@ -18,7 +18,7 @@ Python PDF parser and analyzer
-Last Modified: Tue Jul 21 16:24:26 JST 2009 +Last Modified: Tue Jul 21 23:22:42 JST 2009
@@ -37,7 +37,7 @@ PDF parser that can be used for other purposes instead of text analysis.

Features: