Changeset 2818

Show
Ignore:
Timestamp:
05/17/05 12:16:16 (3 years ago)
Author:
morris
Message:

Run version.pl

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Tuna/trunk/Tuna.xcode/project.pbxproj

    r2814 r2818  
    358358                        runOnlyForDeploymentPostprocessing = 0; 
    359359                        shellPath = /bin/sh; 
    360                         shellScript = "#!/bin/sh\n\n#PATH=\"/usr/local/bin:$PATH\" perl version.pl\n\nexit 0"; 
     360                        shellScript = "#!/bin/sh\n\nPATH=\"/usr/local/bin:$PATH\" perl version.pl\n\nexit 0"; 
    361361                }; 
    362362//770 
  • Tuna/trunk/version.pl

    r2814 r2818  
    22 
    33use strict; 
     4 
     5die "$0: Must be run from Xcode" unless $ENV{BUILT_PRODUCTS_DIR}; 
    46 
    57my $REV = `svn info | grep "^Revision:"`; 
     
    1517close(FH); 
    1618 
    17 $info =~ s/([\t ]+<key>CFBundleVersion<\/key>\n[\t ]+<string>).+?(<\/string>)/$1$version$2/; 
     19$info =~ s/([\t ]+<key>CFBundleVersion<\/key>\n[\t ]+<string>).*?(<\/string>)/$1$version$2/; 
    1820 
    1921open(FH, ">$INFO") or die "$0: $INFO: $!";