# HG changeset patch # User Jeff Hammel # Date 1379919840 25200 # Node ID 925a7959cd0b9afe98a34fde5bff9cde55f9949c # Parent e5adf3414c6b4dcd27964017786f063b3c228405 stub diff -r e5adf3414c6b -r 925a7959cd0b setup.py --- a/setup.py Sat Aug 10 22:08:26 2013 -0700 +++ b/setup.py Mon Sep 23 00:04:00 2013 -0700 @@ -13,8 +13,7 @@ from setuptools import setup kw['entry_points'] = """ [console_scripts] - TextShaper = TextShaper.main:main - TextShaper-template = TextShaper.template:main + textshaper = textshaper.main:main """ kw['install_requires'] = dependencies except ImportError: @@ -36,7 +35,7 @@ author='Jeff Hammel', author_email='jhammel@mozilla.com', url='http://k0s.org/hg/TextShaper', - license='', + license='MPL2', packages=['textshaper'], include_package_data=True, zip_safe=False, diff -r e5adf3414c6b -r 925a7959cd0b textshaper/main.py --- a/textshaper/main.py Sat Aug 10 22:08:26 2013 -0700 +++ b/textshaper/main.py Mon Sep 23 00:04:00 2013 -0700 @@ -9,6 +9,7 @@ import os import subprocess import sys +import time def add_options(parser): """add options to the OptionParser instance""" @@ -27,6 +28,15 @@ parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter()) options, args = parser.parse_args(args) + # read from stdin + content = sys.stdin.read() + + # print formatted content + print content + + while True: + time.sleep(1) # XXX + if __name__ == '__main__': main()