python: post installer doc fix script
* Got rid of the bash bit in the comments. * Made the final printed instructions far more obvious. Signed-off-by: Ben McGinnes <ben@adversary.org>
This commit is contained in:
parent
207d4289d8
commit
a2e7c863c8
@ -122,11 +122,6 @@ help:
|
|||||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
""")
|
""")
|
||||||
|
|
||||||
print("""
|
|
||||||
You may now generate your preferred documentation format with either Sphinx
|
|
||||||
or Texinfo.
|
|
||||||
""")
|
|
||||||
|
|
||||||
info_path = os.path.realpath(sysconfig._PREFIX + "/share/info")
|
info_path = os.path.realpath(sysconfig._PREFIX + "/share/info")
|
||||||
info_paths = os.environ["INFOPATH"].split(":")
|
info_paths = os.environ["INFOPATH"].split(":")
|
||||||
|
|
||||||
@ -141,18 +136,12 @@ for ipath in info_paths:
|
|||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# This will very likely require root or sudo access, so running this script
|
print("""
|
||||||
# with the same access as used to install the bindings in the first place is
|
You may now build your preferred documentation format using either:
|
||||||
# highly recommended.
|
|
||||||
#
|
1. Sphinx in the doc/rst/ directory; and/or
|
||||||
# bash variant (run in lang/python/doc/texinfo/):
|
2. Texinfo or Makeinfo in the doc/texinfo/ directory.
|
||||||
#
|
|
||||||
# for x in *.texi:
|
Alternatively the original Org mode source files can be found in the doc/src/
|
||||||
# makeinfo -v --no-split $x
|
directory.
|
||||||
# done ;
|
""")
|
||||||
#
|
|
||||||
# Or to generate HTML:
|
|
||||||
#
|
|
||||||
# for x in *.texi:
|
|
||||||
# makeinfo -v --no-split --html $x
|
|
||||||
# done ;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user