Add debug info about env variables

This commit is contained in:
Ilia Ross
2024-12-31 17:22:05 +02:00
parent b58ba1cb3b
commit 6d90370b0b
2 changed files with 8 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ else {
$baseproduct = "webmin";
$port = 10000;
}
$deb_maintainer = $ENV{'DEB_MAINTAINER'} ||
"Jamie Cameron <jcameron\@webmin.com>";
$ucproduct = ucfirst($baseproduct);
$tmp_dir = "/tmp/debian";
$debian_dir = "$tmp_dir/DEBIAN";
@@ -478,7 +480,6 @@ foreach my $deb ("deb", "newkey/deb") {
# Create the .dsc file
open(DSC, ">$deb/${product}_$ver$rel.plain");
# Check if DEB_MAINTAINER is set and use it otherwise use Jamie Cameron <jcameron\@webmin.com>
$deb_maintainer = $ENV{'DEB_MAINTAINER'} || "Jamie Cameron <jcameron\@webmin.com>";
print DSC <<EOF;
Format: 1.0
Source: $product

View File

@@ -11,6 +11,12 @@ else {
$base_dir = "/usr/src/redhat";
$< && die "makerpm.pl must be run as root";
}
$rpm_maintainer = $ENV{'RPM_MAINTAINER'} || "Jamie Cameron";
# print ALL env variables
print "All env variables:\n";
foreach $key (keys %ENV) {
print "$key = $ENV{$key}\n";
}
$spec_dir = "$base_dir/SPECS";
$source_dir = "$base_dir/SOURCES";
$rpms_dir = "$base_dir/RPMS/noarch";
@@ -76,7 +82,6 @@ else {
system("cp tarballs/$tarfile $source_dir");
open(SPEC, ">$spec_dir/webmin-$ver.spec");
$rpm_maintainer = $ENV{'RPM_MAINTAINER'} || "Jamie Cameron";
print SPEC <<EOF;
%global __perl_provides %{nil}
%define __spec_install_post %{nil}