diff -urN mako/scripts/mako mako.new/scripts/mako --- mako/scripts/mako 1969-12-31 19:00:00.000000000 -0500 +++ mako.new/scripts/mako 2007-07-26 18:59:53.000000000 -0400 @@ -0,0 +1,12 @@ +#!/usr/bin/env python +"""mako [options] template [template...]""" +from mako.template import Template +from optparse import OptionParser + +parser = OptionParser(__doc__) +options, args = parser.parse_args() +if len(args) == 0: + parser.error("You must specify at least one template") + +for t in args: + print Template(filename = t).render() diff -urN mako/setup.py mako.new/setup.py --- mako/setup.py 2007-06-25 21:16:15.000000000 -0400 +++ mako.new/setup.py 2007-07-26 19:10:59.000000000 -0400 @@ -34,6 +34,7 @@ license='MIT', package_dir={'':'lib'}, packages=find_packages('lib', exclude=['ez_setup', 'examples', 'tests']), + scripts=['scripts/mako'], zip_safe=False, install_requires=[ 'Beaker',