mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Add debug info about env variables
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user