commit fb4222e74daf359a0df3f6878c47f46d7247089d
parent a8a014aba94ca688cb7267f893178429560bab3b
Author: lash <dev@holbrook.no>
Date: Thu, 6 Mar 2025 02:58:01 +0000
Handle relative outdir path
Diffstat:
3 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/Bluto.pm b/Bluto.pm
@@ -10,6 +10,7 @@ use Bluto::Announce;
use Bluto::Tree;
use Bluto::SemVer;
use Bluto::RSS;
+use Bluto::Yaml;
use constant { VCS_TAG_PREFIX => 'v' };
#use constant { VERSION => '0.0.1' };
@@ -189,6 +190,7 @@ sub _check_version {
}
sub _prepare_out {
+ my $r = 0;
my $release = shift;
my $env = shift;
@@ -542,9 +544,11 @@ sub create_rss {
sub create_yaml {
my $y_base = shift;
my $y_release = shift;
- my $env = shift;
- my $y = YAML::Tiny->new($y_base);
+ my $y = Bluto::Yaml::add_release_yaml(\%m_main, $y_base, $y_release, $env);
+ my $fp = Bluto::Yaml::to_file(\%m_main, $y);
+
+ debug('stored announce yaml file: ' . $fp);
}
1;
diff --git a/Bluto/Export.pm b/Bluto/Export.pm
@@ -1,8 +0,0 @@
-package Bluto::Export;
-
-use YAML::Tiny;
-
-use Bluto::Log qw/error info debug warn trace/;
-
-
-sub
diff --git a/bluto-pub b/bluto-pub
@@ -40,12 +40,12 @@ if (!defined $announce) {
die("announce processing failed");
}
-my $rss = Bluto::create_rss($env);
-if (!defined $rss) {
- die("rss processing failed");
-}
-
my $yr = Bluto::create_yaml($ym, $yv, $env);
if (!defined $yr) {
die("yaml output processing failed");
}
+
+my $rss = Bluto::create_rss($env);
+if (!defined $rss) {
+ die("rss processing failed");
+}