The very first part of this exercise will teach you how to create the basic skeleton for a module. To do this you have to create the the file called main.template
For this first part, you have to set the following variables:
~/
file2.test'' and
``file3.test''. file1.test should be the default location to
generate to. Find suitable texts and comment chars for the three
files.
Well nothing has been configured yet, so please import the file called test-mod.template
This should be enough for the file main.template, so please edit the file called test-mod.template (which is imported from main.template)
See Syntax of dotdot files for a description of how the page is organized, or refer
to one of the pages in an existing module.
In this file you have to create a single checkbox, with the text ``Press me''. Find a suitable help message for the checkbox.
This checkbox should be located on a page called ``Testpage''.
In this first part, no Save, PageEnd, Change or Init function is needed.
The page should have the initial description:
To see if everything works fine, you have to edit your
~/
.wishrc file, so it looks like this:
if {[file exists main.template]} { set argv {"/usr/local/lib/dotfile/Generator" "./"} set argc 2 set setup(preventBytecompile) 1 source /usr/local/lib/dotfile/Generator/dotfile.tcl }
You may have to change /usr/local/lib/dotfile/ to the path of
the Dotfile Generator on your system. This make wish start the Dotfile Generator,
when it find the file called main.template in the current working directory.
Now you should type wish in the directory, where your modules is located. This will start the Dotfile Generator.