Summary: Support for writing include -statements to section
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 02 Dec 2013 12:07:57 AM EET
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0



Motive: We don't want to write single nations.ruleset file with hundreds of
nations in it from freeciv-ruledit.

This patch adds a way to get "*include" statements written to file. This works
by adding special include-section (one for each include statement) with just
one entry "file" to keep filename to include. Unfortunately this cannot be
simplified so that filename would be in section name as some necessary
characters are not allowed there. When section file is written to disk, these
include sections are converted to include statements.

As an example and test-case, freeciv-ruledit adds "*include
"default/nationlist.ruleset"" to nations.ruleset (other parts of that ruleset
are not yet written)


File Attachments:

Date: Mon 02 Dec 2013 12:07:58 AM EET  Name: SecfileInclude.patch  Size: 20kB 
 By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to