mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Python #2465: don't create makefile if not prompted to do so.
This commit is contained in:
parent
bf3e2cc208
commit
5dfd70d04d
6
CHANGES
6
CHANGES
@ -1,3 +1,9 @@
|
||||
Changes in trunk
|
||||
================
|
||||
|
||||
* sphinx.quickstart: Really don't create a makefile if the user
|
||||
doesn't want one.
|
||||
|
||||
Release 0.1.61798 (Mar 23, 2008)
|
||||
================================
|
||||
|
||||
|
@ -375,7 +375,8 @@ directly.'''
|
||||
f.write(MASTER_FILE % d)
|
||||
f.close()
|
||||
|
||||
if d['makefile']:
|
||||
create_makefile = d['makefile'].upper() in ('Y', 'YES')
|
||||
if create_makefile:
|
||||
d['rsrcdir'] = separate and 'source' or '.'
|
||||
d['rbuilddir'] = separate and 'build' or d['dot'] + 'build'
|
||||
f = open(path.join(d['path'], 'Makefile'), 'w')
|
||||
@ -387,7 +388,7 @@ directly.'''
|
||||
print '''
|
||||
You should now populate your master file %s and create other documentation
|
||||
source files. Use the sphinx-build.py script to build the docs, like so:
|
||||
''' % masterfile + (d['makefile'] and '''
|
||||
''' % masterfile + (create_makefile and '''
|
||||
make <builder>
|
||||
''' or '''
|
||||
sphinx-build.py -b <builder> %s %s
|
||||
|
Loading…
Reference in New Issue
Block a user