Ignore:
Timestamp:
23/02/2006 20:21:11 (6 years ago)
Author:
ben
Message:

Let's use directory and SVN version in our BOX_VERSION variable

File:
1 edited

Legend:

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

    r413 r492  
    3535        chomp $product_name; 
    3636        close VERSION; 
     37        if($product_version eq 'USE_SVN_VERSION') 
     38        { 
     39                # for developers, use SVN version 
     40                my $svnversion = `svnversion .`; 
     41                chomp $svnversion; 
     42                $svnversion =~ tr/0-9A-Za-z/_/c; 
     43                open INFO,'svn info . |'; 
     44                my $svnurl; 
     45                while(<INFO>) 
     46                { 
     47                        if(m/^URL: (.+?)[\n\r]+/) 
     48                        { 
     49                                $svnurl = $1 
     50                        } 
     51                } 
     52                close INFO; 
     53                $svnurl =~ m!box/(.+)$!; 
     54                my $svndir = $1; 
     55                $svndir =~ tr/0-9A-Za-z/_/c; 
     56                $product_version = $svndir.'_'.$svnversion; 
     57        } 
    3758 
    3859        # where to put the files 
Note: See TracChangeset for help on using the changeset viewer.