Changeset 68 in ProjectBuilder for devel/pb/lib/ProjectBuilder
- Timestamp:
- Aug 31, 2007, 1:45:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/common.pm
r67 r68 103 103 # Adapt to your needs 104 104 # Set delivery directory 105 # Removes all directory existing below as they are temp dir only 106 # Files stay and have to be cleaned up manually 105 107 # 106 108 chdir "$ENV{'PBROOT'}/.."; 107 109 my $path = `pwd`; 108 110 chomp($path); 109 $ENV{'PBTOPDIR'}=$path."/delivery"; 110 $ENV{'PBDESTDIR'}="$ENV{'PBTOPDIR'}/$ENV{'PBVER'}-$ENV{'PBTAG'}"; 111 $ENV{'PBDESTDIR'}=$path."/delivery"; 111 112 if (-d $ENV{'PBDESTDIR'}) { 112 113 opendir(DIR,$ENV{'PBDESTDIR'}) || die "Unable to open directory $ENV{'PBDESTDIR'}: $!"; 113 114 foreach my $d (readdir(DIR)) { 114 115 next if ($d =~ /^\./); 116 next if (-f "$ENV{'PBDESTDIR'}/$d"); 115 117 pbrm_rf("$ENV{'PBDESTDIR'}/$d") if (-d "$ENV{'PBDESTDIR'}/$d"); 116 118 }
Note:
See TracChangeset
for help on using the changeset viewer.