~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to generate_docs.py

  • Committer: Martin Pool
  • Date: 2007-07-11 06:47:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2612.
  • Revision ID: mbp@sourcefrog.net-20070711064730-pwnhisgp2caf7nar
Don't show dots progress indicatiors in noninteractive mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#
15
15
# You should have received a copy of the GNU General Public License
16
16
# along with this program; if not, write to the Free Software
17
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
 
19
19
"""%(prog)s - generate information from built-in bzr help
20
20
 
83
83
        outfile = open(outfilename,"w")
84
84
 
85
85
    if options.show_filename and (outfilename != "-"):
86
 
        sys.stdout.write(outfilename)
87
 
        sys.stdout.write('\n')
 
86
        print >>sys.stdout, outfilename
88
87
    
89
88
    infogen_mod.infogen(options, outfile)
90
89
 
94
93
    Prints out the examples stored in the docstring. 
95
94
 
96
95
    """
97
 
    sys.stdout.write(__doc__ % {"prog":sys.argv[0]})
98
 
    sys.stdout.write('\n')
 
96
    print >>sys.stdout, __doc__ % {"prog":sys.argv[0]}
99
97
    sys.exit(0)
100
98
 
101
99
if __name__ == '__main__':