Dev: Fork it! [build]

This commit is contained in:
Ilia Ross
2024-04-14 00:32:15 +03:00
parent d3b46a6675
commit 548b2ab08e
2 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/local/bin/perl
# Builds a tar.gz package of a specified Webmin version
use Cwd 'abs_path', 'getcwd';
if ($0 =~ /^(.*)\//) {
chdir($1);
}
@@ -88,14 +88,7 @@ else {
# Build EOL data
if (-r "./webmin/os-eol-lib.pl") {
print "Building OS EOL data\n";
print "Before do: ", getcwd(), "\n";
do "./web-lib-funcs.pl";
print "After do 1: ", getcwd(), "\n";
do "./webmin/os-eol-lib.pl";
print "After do 2: ", getcwd(), "\n";
&eol_build_all_os_data("./os_eol.json");
print "After run 1: ", getcwd(), "\n";
print &backquote_command("cat ./os_eol.json");
system("./os-eol.pl");
}
# Prepare dist files

6
os-eol.pl Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/local/bin/perl
# Build EOL data JSON file
do "./web-lib-funcs.pl";
do "./webmin/os-eol-lib.pl";
&eol_build_all_os_data("./os_eol.json");