diff options
author | Remi Collet <remi@remirepo.net> | 2023-05-24 16:16:53 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-05-24 16:16:53 +0200 |
commit | b68ec763e1cef8862d2fa6f24007cae180e3f763 (patch) | |
tree | 668047a3989dc6078cbe2b8596c38468d6918b4d /mkmodular | |
parent | a9bce0428b5c33a9975e975596c89bf69fe110f0 (diff) |
composer module helper
Diffstat (limited to 'mkmodular')
-rwxr-xr-x | mkmodular | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -731,7 +731,7 @@ if (in_array('el8', $_SERVER['argv']) || in_array('test', $_SERVER['argv'])) { $mod .= genModule('enterprise/8/debug-test82/x86_64', $dest, '*.rpm', '8.2', 'x86_64', $deps, $template_php); createRepo($dest, $mod); } -if (count($_SERVER['argv']) < 2 || in_array('el8', $_SERVER['argv'])) { +if (count($_SERVER['argv']) < 2 || in_array('el8', $_SERVER['argv']) || in_array('composer', $_SERVER['argv'])) { $dest = 'enterprise/8/modular/x86_64'; echo "Populate $dest\n"; cleanup($dest); @@ -759,7 +759,8 @@ if (count($_SERVER['argv']) < 2 || in_array('el8', $_SERVER['argv'])) { $mod .= genModule('enterprise/8/composer2/x86_64', $dest, '*.rpm', '2', 'x86_64', $deps, $template_comp); $mod .= genDefaults('composer', '2', ['1', '2']); createRepo($dest, $mod); - +} +if (count($_SERVER['argv']) < 2 || in_array('el8', $_SERVER['argv'])) { $dest = 'enterprise/8/debug-modular/x86_64'; echo "Populate $dest\n"; cleanup($dest); @@ -811,7 +812,7 @@ if (in_array('el9', $_SERVER['argv']) || in_array('test', $_SERVER['argv'])) { createRepo($dest, $mod); } -if (count($_SERVER['argv']) < 2 || in_array('el9', $_SERVER['argv'])) { +if (count($_SERVER['argv']) < 2 || in_array('el9', $_SERVER['argv']) || in_array('composer', $_SERVER['argv'])) { $dest = 'enterprise/9/modular/x86_64'; echo "Populate $dest\n"; cleanup($dest); @@ -837,7 +838,8 @@ if (count($_SERVER['argv']) < 2 || in_array('el9', $_SERVER['argv'])) { $mod .= genModule('enterprise/9/composer2/x86_64', $dest, '*.rpm', '2', 'x86_64', $deps, $template_comp); $mod .= genDefaults('composer', false, ['2']); createRepo($dest, $mod); - +} +if (count($_SERVER['argv']) < 2 || in_array('el9', $_SERVER['argv'])) { $dest = 'enterprise/9/debug-modular/x86_64'; echo "Populate $dest\n"; cleanup($dest); @@ -859,7 +861,7 @@ if (count($_SERVER['argv']) < 2 || in_array('el9', $_SERVER['argv'])) { createRepo($dest, $mod); } -if (count($_SERVER['argv']) > 1 && in_array('el9a', $_SERVER['argv'])) { +if (count($_SERVER['argv']) > 1 && in_array('el9a', $_SERVER['argv']) || in_array('composer', $_SERVER['argv'])) { $dest = 'enterprise/9/modular/aarch64'; echo "Populate $dest\n"; cleanup($dest); @@ -885,7 +887,8 @@ if (count($_SERVER['argv']) > 1 && in_array('el9a', $_SERVER['argv'])) { $mod .= genModule('enterprise/9/composer2/x86_64', $dest, '*noarch.rpm', '2', 'aarch64', $deps, $template_comp); $mod .= genDefaults('composer', false, ['2']); createRepo($dest, $mod); - +} +if (count($_SERVER['argv']) > 1 && in_array('el9a', $_SERVER['argv'])) { $dest = 'enterprise/9/debug-modular/aarch64'; echo "Populate $dest\n"; cleanup($dest); |