Rework configuration to it's own package and make it available to web server. Start a template driven web interface.

This commit is contained in:
2021-01-31 17:53:32 +10:30
parent 55bb5a8bae
commit 46a0f5a187
8 changed files with 326 additions and 90 deletions

View File

@@ -3,11 +3,11 @@
use strict;
use warnings;
open my $fh, "<", "dau.go" || die $!;
open my $fh, "<", "config/config.go" || die $!;
my $version;
while (<$fh>) {
$version = $1 if /^const\s+currentVersion.*?"([\d\.]+)"/;
$version = $1 if /^const\s+CurrentVersion.*?"([\d\.]+)"/;
}
close $fh;