[pypy-commit] pypy default: makeref: Record how _ref.txt is made and when it is regenerated
techtonik
noreply at buildbot.pypy.org
Fri Apr 11 11:15:22 CEST 2014
Author: anatoly techtonik <techtonik at gmail.com>
Branch:
Changeset: r70547:b7703990f632
Date: 2014-04-10 14:28 +0300
http://bitbucket.org/pypy/pypy/changeset/b7703990f632/
Log: makeref: Record how _ref.txt is made and when it is regenerated
diff --git a/pypy/doc/_ref.txt b/pypy/doc/_ref.txt
--- a/pypy/doc/_ref.txt
+++ b/pypy/doc/_ref.txt
@@ -1,3 +1,6 @@
+.. This file is generated automatically by makeref.py script,
+ which in turn is run manually.
+
.. _`ctypes_configure/doc/sample.py`: https://bitbucket.org/pypy/pypy/src/default/ctypes_configure/doc/sample.py
.. _`dotviewer/`: https://bitbucket.org/pypy/pypy/src/default/dotviewer/
.. _`lib-python/`: https://bitbucket.org/pypy/pypy/src/default/lib-python/
diff --git a/pypy/doc/jit/_ref.txt b/pypy/doc/jit/_ref.txt
--- a/pypy/doc/jit/_ref.txt
+++ b/pypy/doc/jit/_ref.txt
@@ -0,0 +1,4 @@
+.. This file is generated automatically by makeref.py script,
+ which in turn is run manually.
+
+
diff --git a/pypy/doc/tool/makeref.py b/pypy/doc/tool/makeref.py
--- a/pypy/doc/tool/makeref.py
+++ b/pypy/doc/tool/makeref.py
@@ -60,8 +60,11 @@
lines.append(".. _`%s`:" % linkname)
lines.append(".. _`%s`: %s" %(linknamelist[-1], linktarget))
- lines.append('')
- reffile.write("\n".join(lines), mode="wb")
+ content = ".. This file is generated automatically by makeref.py script,\n"
+ content += " which in turn is run manually.\n\n"
+ content += "\n".join(lines) + "\n"
+ reffile.write(content, mode="wb")
+
print "wrote %d references to %r" %(len(lines), reffile)
#print "last ten lines"
#for x in lines[-10:]: print x
More information about the pypy-commit
mailing list