use Getopt::Long;
use CGI::SSI;
+my $VERSION;
+$VERSION = '1.0.0';
+
sub main
{
my %opts;
usage($fh);
print("Options:\n");
- print(" -D <name>=<value> Set the variable <name> to <value>\n");
- print(" -I <directory> Set the document root to <directory>\n");
print(" -o <output> Place the output into <output>\n");
+ print(" -I <directory> Set the document root to <directory>\n");
+ print(" -D <name>=<value> Set the variable <name> to <value>\n");
print(" -h, --help Display this information\n");
print(" -V, --version Display compiler version information\n");
}
{
my ($fh) = @_;
- print("ssic 0.1.0\n");
+ printf("ssic %s\n", $VERSION);
print("Copyright (C) 2013 Patrick \"P. J.\" McDermott\n");
print("License GPLv3+: GNU GPL version 3 or later " .
"<http://gnu.org/licenses/gpl.html>.\n");
$CGI::SSI::DEBUG = 0;
$ssi = CGI::SSI->new();
+ $ssi->set("__SSIC__" => 1);
$ssi->set("DOCUMENT_ROOT" => $root);
while (($var_name, $var_value) = each(%{$vars})) {