Changeset 223
- Timestamp:
- 07/05/05 11:34:57 (19 years ago)
- Location:
- pkpgcounter/trunk
- Files:
-
- 2 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/bin/pkpgcounter
r222 r223 24 24 25 25 import sys 26 from pdlanalyzer.version import __version__ 26 from pdlanalyzer.version import __version__, __author__, __authoremail__, \ 27 __years__, __gplblurb__ 27 28 from pdlanalyzer import analyzer 29 30 __doc__ = """pkpgcounter v%(__version__)s (c) %(__years__)s %(__author__)s 31 32 pkpgcounter is a generic Page Description Language parser. 33 34 pkpgcounter parses any number of input files and/or its standard input 35 and outputs the number of pages needed to print these documents. 36 37 pkpgcounter currently recognizes the following document formats : 38 39 * PostScript (both DSC compliant and binary) 40 * PDF 41 * PCLXL (aka PCL6) 42 * PCL3/4/5 (mostly) 43 * DVI 44 * TIFF 45 * ESC/P2 46 47 command line usage : 48 49 pkpgcounter [options] [files] 50 51 options : 52 53 -v | --version Prints pkpgcounter's version number then exits. 54 -h | --help Prints this message then exits. 55 56 -d | --debug Activate debug mode. 57 58 examples : 59 60 $ pkpgcounter file1.ps file2.escp2 file3.pclxl <file4.pcl345 61 62 Will launch pkpgcounter and will output the total number of pages 63 needed to print all the documents specified. 64 65 %(__gplblurb__)s 66 67 Please e-mail bugs to: %(__authoremail__)s""" 28 68 29 69 if __name__ == "__main__" : 30 70 if (len(sys.argv) >= 2) and (sys.argv[1] in ("-h", "--help")) : 31 print "usage : pkpgcounter file1 [ file2 ... fileN [ <anotherfile ] ]"71 print __doc__ % globals() 32 72 elif (len(sys.argv) >= 2) and (sys.argv[1] in ("-v", "--version")) : 33 73 print __version__ -
pkpgcounter/trunk/pdlanalyzer/version.py
r220 r223 20 20 # 21 21 22 __version__ = "1.5 3"22 __version__ = "1.54" 23 23 24 24 __doc__ = """pkpgcounter : a generic Page Description Languages parser.""" 25 25 26 __author__ = """Jerome Alet - alet@librelogiciel.com""" 26 __author__ = "Jerome Alet" 27 __authoremail__ = "alet@librelogiciel.com" 28 __years__ = "2003, 2004, 2005" 27 29 30 __gplblurb__ = """This program is free software; you can redistribute it and/or modify 31 it under the terms of the GNU General Public License as published by 32 the Free Software Foundation; either version 2 of the License, or 33 (at your option) any later version. 34 35 This program is distributed in the hope that it will be useful, 36 but WITHOUT ANY WARRANTY; without even the implied warranty of 37 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38 GNU General Public License for more details. 39 40 You should have received a copy of the GNU General Public License 41 along with this program; if not, write to the Free Software 42 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.""" 43