Dev: Fix builds to include EOL data properly [build]

This commit is contained in:
Ilia Ross 2024-04-14 00:44:26 +03:00
parent 548b2ab08e
commit 1b7c9bea0d
No known key found for this signature in database
GPG Key ID: 121E166DD9C821AB
3 changed files with 11 additions and 1 deletions

View File

@ -18,3 +18,10 @@ cloud_upload_ssh_host="${ENV_BUILD__CLOUD_UPLOAD_SSH_HOST:-webmin.dev}"
cloud_upload_ssh_dir="${ENV_BUILD__CLOUD_UPLOAD_SSH_DIR:-~/domains/builds.webmin.dev/public_html}"
cloud_upload_gpg_passphrase="${WEBMIN_DEV__GPG_PH}"
# Define verbosity level
verbosity_level=' >/dev/null 2>&1 </dev/null'
verbosity_level_to_file='2> /dev/null'
verbosity_level_with_input=' >/dev/null 2>&1'
if [[ "'$*'" == *"--debug"* ]]; then
unset verbosity_level verbosity_level_to_file verbosity_level_with_input
fi

View File

@ -88,7 +88,7 @@ else {
# Build EOL data
if (-r "./webmin/os-eol-lib.pl") {
print "Building OS EOL data\n";
system("./os-eol.pl");
system("./os-eol-make.pl");
}
# Prepare dist files

View File

@ -1,6 +1,9 @@
#!/usr/local/bin/perl
# Build EOL data JSON file
if ($0 =~ /^(.*)\//) {
chdir($1);
}
do "./web-lib-funcs.pl";
do "./webmin/os-eol-lib.pl";
&eol_build_all_os_data("./os_eol.json");