New configuration file format

Since relinux 0.4 is to be coded in C++, there is no easy way to parse a configuration file, and since the old format can make relinux trip up, there is no reason why we shouldn’t make a better format.

The new format is much easier to read:
Old Format:
# NAME=Work Directory
# DESCRIPTION=The work directory of relinux, which will also be where the generated ISO file will be located
# TYPE=filename
WORKDIR="/home/relinux"

New Format:
(Description for Work Directory: The work directory of relinux, which will also be where the generated ISO file will be located)
(Format for Work Directory: Filename)
Work Directory = /home/relinux

Some other advantages of the new format is that comments can be anywhere:
...
Work Directory = /home/relinux (I like to place my things under /home)
...
Enable(This is a comment) WU(I can place a comment anywhere!)BI = Yes (Yet another comment)

Also, you can put any number of spaces with the = sign:

Work Directory     =            /home/relinux

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: