Inno-Tech's Administration ToolChest: KGen - Kix Development Tool
KGen is a tool used for developing KiXtart scripts. It is especially useful for large projects, as it allows them to be broken into many smaller files. It also allows the KiX developer to write code using a library of UDFs as if the external functions were built into KiX. It eliminates the need to manually include UDF files, or dynamically load them at runtime (and hope they are available when you need them!).
KGen parses the script source, identifying and resolving dependencies on external User Defined Functions. It combines all required UDF files with the script source to generate a single script file.
We use KGen for nearly every Kixtart script we write, no matter how small. All of our large script projects, including tsAdm and SIT were developed using KGen to generate the final product. These projects consist of over 3,500 and 12,000 lines of code, respctively, and yet are easy to manage and debug.
An extremely useful feature of KGen is it's sanity checking. After the script is generated, the resulting file is run through a process that identifies variables that are defined both locally and globally, variables that are not defined, variables defined but not referenced, and variables referenced inside strings. It also locates potentially unmatched quotes, parens, and paired functions including If/EndIf, Do/Until, While/Loop, Select/EndSelect, and For/Next. Logs identify variable declaration and reference, UDF use, and sanity warnings. A codemap file graphically illustrates function pairing by function, making it easy to locate missing or unbalanced function clauses.
The download file contains several UDF files and a sample project to jumpstart your development efforts!