commit ca6593c5a30d58b10cd78b337b81febd29508d07
parent c4462b21b8023dfd24cac597dcf8983f28ff535f
Author: lash <dev@holbrook.no>
Date: Sat, 28 Sep 2024 15:35:33 +0100
Shift version file to src dir
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Bluto.pm b/Bluto.pm
@@ -140,7 +140,7 @@ sub _check_version {
my $f;
my $fp;
- $fp = File::Spec->catfile($env->{content_dir}, 'VERSION');
+ $fp = File::Spec->catfile($env->{src_dir}, 'VERSION');
if ($env->{version}) {
info('writing new explicit version ' . $env->{version} . ' to file: ' . $fp);
open($f, '>', $fp);
@@ -181,7 +181,7 @@ sub from_config {
if (defined $cfg->{version}) {
$version = $cfg->{version};
} else {
- $fn = File::Spec->catfile($env->{content_dir}, 'VERSION');
+ $fn = File::Spec->catfile($env->{src_dir}, 'VERSION');
open(my $f, '<', $fn) or error('no version file found: ' . $fn) && return undef;
$version = <$f>;
close($f);