From e7fffdc8215c3fdeae1dc88dc1f73afc4c808adc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 18 Jul 2007 19:45:11 +0000 Subject: [PATCH] doc_toc.py: add comment to explain its calling syntax (fixes bug 3798 http://bugzilla.lyx.org/show_bug.cgi?id=3798) depend.py: dito, and fix file encoding git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19122 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/doc/depend.py | 7 +++++-- lib/doc/doc_toc.py | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/doc/depend.py b/lib/doc/depend.py index 7baa1ae9ca..4a5b585f66 100644 --- a/lib/doc/depend.py +++ b/lib/doc/depend.py @@ -1,7 +1,7 @@ #! /usr/bin/env python -# -*- coding: iso-8859-1 -*- +# -*- coding: utf-8 -*- # This file is part of the LyX Documentation -# Copyright (C) 2004 José Matos +# Copyright (C) 2004 José Matos # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -21,6 +21,9 @@ # It does so by going through the files and printing out all of the # chapter, section, and sub(sub)section headings out. (It numbers the # sections sequentially; hopefully noone's using Section* in the docs.) +# It calls the script doc_toc.py using this syntax: +# depend.py doc_toc.py SetOfDocuments +# where SetOfDocuments is a set of documents import sys import os diff --git a/lib/doc/doc_toc.py b/lib/doc/doc_toc.py index 9ee656803f..61e5fb8d4f 100755 --- a/lib/doc/doc_toc.py +++ b/lib/doc/doc_toc.py @@ -17,10 +17,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# This script creates a "master table of contents" for a set of LyX docs. +# This script is called by the script depend.py to create a "master table of contents" +# for a set of LyX docs. # It does so by going through the files and printing out all of the # chapter, section, and sub(sub)section headings out. (It numbers the # sections sequentially; hopefully noone's using Section* in the docs.) +# It is calledusing this syntax: +# depend.py doc_toc.py SetOfDocuments +# where SetOfDocuments is a set of documents import sys import os -- 2.39.5