mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
Reorganize directories of doc/
git-svn-id: http://svn.pyinstaller.org/trunk@53 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#
|
||||
# Generate PyInstaller documentation
|
||||
#
|
||||
|
||||
all: doc
|
||||
|
||||
|
||||
doc:
|
||||
tools/buildrecursive.py --local --title="PyInstaller Tutorial"
|
||||
|
||||
clean:
|
||||
rm -f *.html
|
||||
|
||||
|
||||
#
|
||||
# END OF FILE
|
||||
#
|
||||
-1589
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Generate PyInstaller documentation
|
||||
#
|
||||
|
||||
all: doc
|
||||
|
||||
|
||||
doc:
|
||||
tools/buildrecursive.py --local --strict --title="PyInstaller Tutorial" --outpath=..
|
||||
|
||||
clean:
|
||||
rm -f ../*.html
|
||||
|
||||
install:
|
||||
cp *.html ..
|
||||
|
||||
|
||||
#
|
||||
# END OF FILE
|
||||
#
|
||||
@@ -67,6 +67,9 @@ class SettingsSpec(docutils.SettingsSpec):
|
||||
['--recurse'],
|
||||
{'action': 'store_true', 'default': 1,
|
||||
'validator': frontend.validate_boolean}),
|
||||
('Generate output files in the specified directory. The default is '
|
||||
'to put them in the same directory of the input files.',
|
||||
['--outpath'], {'metavar': '<directory>', 'type': 'string'}),
|
||||
('Do not scan subdirectories for files to process.',
|
||||
['--local'], {'dest': 'recurse', 'action': 'store_false'}),
|
||||
('Do not process files in <directory>. This option may be used '
|
||||
@@ -217,6 +220,10 @@ class Builder:
|
||||
return 1
|
||||
settings._source = os.path.normpath(os.path.join(directory, name))
|
||||
settings._destination = settings._source[:-4]+'.html'
|
||||
if settings.outpath:
|
||||
# FIXME: we should probably try and recreate the exising structure here,
|
||||
# but that's more work than we need right now.
|
||||
settings._destination = os.path.join(settings.outpath, os.path.basename(settings._destination))
|
||||
if not self.initial_settings.silent:
|
||||
print >>sys.stderr, ' ::: Processing:', name
|
||||
sys.stderr.flush()
|
||||
Reference in New Issue
Block a user