Changeset 2242

Show
Ignore:
Timestamp:
21/08/2008 11:11:27 (5 months ago)
Author:
chris
Message:

Understand Boxi SVN URLs and build an appropriate version string for Box
Backup from them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/BoxPlatform.pm.in

    r2168 r2242  
    6969                } 
    7070                close INFO; 
    71                 $svnurl =~ m!box/(.+)$!; 
    72                 my $svndir = $1; 
     71 
     72                my $svndir; 
     73                if ($svnurl =~ m!/box/(.+)$!) 
     74                { 
     75                        $svndir = $1; 
     76                } 
     77                elsif ($svnurl =~ m'/(boxi/.+)/boxi/boxbackup') 
     78                { 
     79                        $svndir = $1; 
     80                } 
     81 
    7382                $svndir =~ tr/0-9A-Za-z/_/c; 
    7483                $product_version =~ s/USE_SVN_VERSION/$svndir.'_'.$svnversion/e;