5214N/A# --------- utility functions ---------------------------------------------- 5214N/A 'get the self package or rpm name',
5214N/A 'get the child package or rpm names',
5214N/A 'get all source filenames',
5214N/A 'get all source filenames beloging to the specified rpm name',
5214N/A 'get all patch filenames beloging to the specified rpm name',
5214N/A 'get the build dirname under %{_buildir}',
5214N/A 'get all child build dirnames under %{_buildir}/parent',
5214N/A 'get the build dirname under %{_buildir}/parent belonging to the specified rpm name,',
5214N/A printf (
"unknown command: $arg\n");
5214N/A 'get-sources-from-child=s' =>
sub {
shift; $
defaults->
set (
'get_source_names_from_child',
shift); },
5214N/A 'get-patches-from-child=s' =>
sub {
shift; $
defaults->
set (
'get_patch_names_from_child',
shift); },
5214N/A 'get-builddir-from-child=s' =>
sub {
shift; $
defaults->
set (
'get_builddir_name_from_child',
shift); },
5214N/A# --------- parse command -------------------------------------------------- 5214N/A# printf ("%s\n", $$spec_used->get_base_file_name()); 5214N/A# I don't know but when used 'printf (' instead of 'printf(', got exec errors. 5214N/A for (
my $i =
0; $i <=$
#specs_to_build; $i++) {