*** ltib.~1.91.~ 2013-06-22 10:50:13.000000000 -0400 --- ltib 2013-07-29 15:35:05.723931604 -0400 *************** *** 200,205 **** --- 200,206 ---- help => 0, clobber => 0, need_frb => 0 + remove_dev_files => 0, }; use strict 'vars'; *************** *** 355,360 **** --- 356,363 ---- --batch|b : batch mode, assume yes to all questions --force|f : force rebuilds even if they are up to date --clobber|K : clobber a package build source if its specfile is updated + --remove_dev_files : remove *.dev files in platform to force + using default configuration --reinstall|e : re-install rpms (but don't force rebuild) --erase|E : remove (erase) rpm --nodeps|n : turn off install/uninstall dependency checks *************** *** 412,417 **** --- 415,421 ---- "batch|b" => \$cf->{batch}, "force|f" => \$cf->{force}, "clobber|K" => \$cf->{clobber}, + "remove_dev_files" => \$cf->{remove_dev_files}, "reinstall|e"=> \$cf->{reinstall}, "erase|E" => \$cf->{erase}, "nodeps|n" => \$cf->{nodeps}, *************** *** 568,573 **** --- 572,584 ---- # get/set the platform directory $cf->{plat_dir} = get_plat_dir() or die; + # if remove_dev_files then clean out all files in config that end in .dev + # to prevent them from overriding the configuration we have + if( $cf->{remove_dev_files} ) { + print "Removing all .dev files in $cf->{plat_dir}\n"; + system_nb("rm -rf $cf->{plat_dir}/*.dev"); + } + my @rl = build_root_list(); foreach my $n (reverse @rl) { print "\nProcessing root number: ", $n+1, " of ", $#rl+1, "\n",