Changeset 366 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Apr 8, 2008, 12:28:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r363 r366 1162 1162 die "-V Version parameter needed" if ((not defined $newver) || ($newver eq "")); 1163 1163 1164 my ($scheme,$uri)=pb_cms_init($pbinit); 1164 # Need this call for PBDIR 1165 my ($scheme2,$uri) = pb_cms_init($pbinit); 1166 1167 my ($pbconf) = pb_conf_read("$ENV{'PBETC'}","pbconfurl"); 1168 $uri = $pbconf->{$ENV{'PBPROJ'}}; 1169 my ($scheme, $account, $host, $port, $path) = pb_get_uri($uri); 1165 1170 1166 1171 # Checking CMS repositories status 1167 1172 my ($pburl) = pb_conf_get("pburl"); 1168 my($scheme2, $account, $host, $port, $path) = pb_get_uri($pburl->{$ENV{'PBPROJ'}});1173 ($scheme2, $account, $host, $port, $path) = pb_get_uri($pburl->{$ENV{'PBPROJ'}}); 1169 1174 1170 1175 if ($scheme !~ /^svn/) { … … 1184 1189 1185 1190 my $newurl = "$uri/".dirname($tmp)."/$newver"; 1186 my $oldver= basename("$uri/$tmp"); 1191 # Should probably use projver in the old file 1192 my $oldver= basename($tmp); 1187 1193 1188 1194 # Checking pbcl files 1189 foreach my $f (<$ENV{'PB CONFDIR'}/*/pbcl>) {1195 foreach my $f (<$ENV{'PBROOTDIR'}/*/pbcl>) { 1190 1196 open(PBCL,$f) || die "Unable to open $f"; 1191 1197 my $foundnew = 0; … … 1197 1203 } 1198 1204 1205 # Duplicate and extract project-builder part 1199 1206 pb_log(2,"Copying $uri/$tmp to $newurl\n"); 1200 pb_cms_copy($scheme,$uri,$newurl); 1201 pb_log(2,"Checkout $newurl to $ENV{'PBDIR'}/../$newver\n"); 1202 pb_cms_checkout($scheme,$newurl,"$ENV{'PBDIR'}/../$newver"); 1207 pb_cms_copy($scheme,"$uri/$tmp",$newurl); 1208 pb_log(2,"Checkout $newurl to $ENV{'PBROOTDIR'}/../$newver\n"); 1209 pb_cms_checkout($scheme,$newurl,"$ENV{'PBCONFDIR'}/../$newver"); 1210 1211 # Duplicate and extract project 1212 my $newurl2 = "$pburl->{$ENV{'PBPROJ'}}/".dirname($tmp)."/$newver"; 1213 1214 pb_log(2,"Copying $pburl->{$ENV{'PBPROJ'}}/$tmp to $newurl2\n"); 1215 pb_cms_copy($scheme,"$pburl->{$ENV{'PBPROJ'}}/$tmp",$newurl2); 1216 pb_log(2,"Checkout $newurl2 to $ENV{'PBDIR'}/../$newver\n"); 1217 pb_cms_checkout($scheme,$newurl2,"$ENV{'PBDIR'}/../$newver"); 1203 1218 1204 1219 # Update the .pb file 1205 # Should probably use projver in the old file1206 1220 open(FILE,"$ENV{'PBROOTDIR'}/../$newver/$ENV{'PBPROJ'}.pb") || die "Unable to open $ENV{'PBROOTDIR'}/../$newver/$ENV{'PBPROJ'}.pb"; 1207 1221 open(OUT,"> $ENV{'PBROOTDIR'}/../$newver/$ENV{'PBPROJ'}.pb.new") || die "Unable to write to $ENV{'PBROOTDIR'}/../$newver/$ENV{'PBPROJ'}.pb.new";
Note:
See TracChangeset
for help on using the changeset viewer.