diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-05-18 22:55:10 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-05-18 22:55:10 +0000 |
commit | 6dfcbfce91d7f1e332637c7421b827ba8e7bc405 (patch) | |
tree | 08f48b4e53fc7863d65ae90e4c4e80aaa2085614 /iurt2 | |
parent | 35e26c46f7c9fa2cb60e0e8c406c6d4284e8f235 (diff) | |
download | iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar.gz iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar.bz2 iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.tar.xz iurt-6dfcbfce91d7f1e332637c7421b827ba8e7bc405.zip |
Allow giving additional macros to iurt
Diffstat (limited to 'iurt2')
-rwxr-xr-x | iurt2 | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -37,6 +37,7 @@ use Iurt::Config qw(config_usage get_date get_prefix config_init dump_cache_par use Data::Dumper; use URPM; use Iurt::DKMS; +use lib '/home/iurt/'; use Iurt::Urpmi; use Iurt::Chroot qw(add_local_user create_temp_chroot remove_chroot clean_unionfs clean_all_unionfs clean_all_chroot_tmp check_build_chroot clean_chroot); use Iurt::Process qw(perform_command clean kill_for_good sudo); @@ -94,6 +95,7 @@ $run{todo} = []; [--use-system-distrib] [--dir] [--help foo?] [--log filename] [--group] [--unionfs] [--upload [--markrelease] [--source]] [--dir] [--help foo?] [--log filename] [--unionfs] [--status] [--ignore-failure] [--repository <distribution path>] + [--rpmmacros <macro definition> [<macro definition>...]] {--config_help | --dkms {--media <media regexp>} --chroot --arch {i586|x86_64|ppc} --distro {cooker|2006.0|community/2006.0|...} } | --build-user <user> --rebuild {cooker|2006.0|community/2006.0|...} {i586|x86_64|ppc|...} {filename1.src.rpm} {filename2.src.rpm} ... {filenamen.src.rpm} }", @@ -245,6 +247,9 @@ $run{todo} = []; } 1; }, "Activating rebuild mode" ], + [ "", "rpmmacros", -1, "<macro definition 1> .. <macro definition n>", + "Additional rpm macros to define", + sub { $run{rpmmacros} = \@_ }, 'Setting rpm macros' ], [ "", "upload", [ ["", "upload", 0, "[options]", "Upload the rebuild packages", |