Add flag to clobber existing libraries and SYM files before building each project.

This commit is contained in:
sfraser%netscape.com 1998-12-17 01:24:37 +00:00
parent 5d62de2b19
commit 6eba192af0
4 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,7 @@ use Moz;
# configuration variables
$DEBUG = 0;
$ALIAS_SYM_FILES = $DEBUG;
$CLOBBER_LIBS = 0;
$pull{all} = 0;
$pull{lizard} = 0;

View File

@ -28,6 +28,8 @@ use Moz;
# configuration variables
$DEBUG = 1;
$ALIAS_SYM_FILES = $DEBUG;
$CLOBBER_LIBS = 1; # turn on to clobber existing libs and .xSYM files before
# building each project
$pull{all} = 0;
$pull{lizard} = 0;

View File

@ -329,6 +329,12 @@ sub BuildOneProject($$$$$)
my($project_dir) = $project_path;
$project_dir =~ s/:[^:]+$/:/; # chop off leaf name
if ($main::CLOBBER_LIBS)
{
unlink "$project_dir$target_name"; # it's OK if these fail
unlink "$project_dir$target_name.xSYM";
}
if ($toc_file ne "")
{
ReconcileProject("$project_path", "$project_dir$toc_file");

View File

@ -29,6 +29,7 @@ use Moz;
$DEBUG = 1;
$ALIAS_SYM_FILES = 0;
$CLOBBER_LIBS = 0;
$pull{all} = 0;
$pull{lizard} = 0;