]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix main file output name in Texinfo skeletons
authorJohn Mandereau <john.mandereau@gmail.com>
Sun, 2 Sep 2007 16:26:52 +0000 (18:26 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Sun, 2 Sep 2007 16:26:52 +0000 (18:26 +0200)
buildscripts/texi-langutils.py

index ed5510727cf69a04d3cb0dea4a7ce0ed01a923bc..66900268bcdaf45f1f9b993b2ebe3cd430fff29f 100644 (file)
@@ -120,11 +120,11 @@ if make_gettext:
        node_list_filename = 'node_list'
        node_list = open (node_list_filename, 'w')
        for texi_file in texi_files:
-               process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, texi_file, node_list)
+               process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, os.path.basename (texi_file), node_list)
        for word in ('Up:', 'Next:', 'Previous:', 'Appendix ', 'Footnotes', 'Table of Contents'):
                node_list.write ('_(r"' + word + '")\n')
        node_list.close ()
        os.system ('xgettext -c -L Python --no-location -o ' + output_file + ' ' + node_list_filename)
 else:
        for texi_file in texi_files:
-               process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, texi_file)
+               process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, os.path.basename (texi_file))