Changeset 972

Show
Ignore:
Timestamp:
10/25/08 11:23:50 (3 months ago)
Author:
astrange
Message:

Show SVN revision in prefpane version

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Perian.xcodeproj/project.pbxproj

    r971 r972  
    13481348                                83D1D6C60B4C794700E09EC9 /* Frameworks */, 
    13491349                                F535FCD50B4D605900F00D14 /* ShellScript */, 
     1350                                3D0B9E090EB37E8300C4F556 /* ShellScript */, 
    13501351                        ); 
    13511352                        buildRules = ( 
     
    15321533                }; 
    15331534                11BA3E510A61F2CE008AF206 /* ShellScript */ = { 
     1535                        isa = PBXShellScriptBuildPhase; 
     1536                        buildActionMask = 2147483647; 
     1537                        files = ( 
     1538                        ); 
     1539                        inputPaths = ( 
     1540                        ); 
     1541                        outputPaths = ( 
     1542                        ); 
     1543                        runOnlyForDeploymentPostprocessing = 0; 
     1544                        shellPath = /bin/sh; 
     1545                        shellScript = "# Xcode auto-versioning script for Subversion\n# by Axel Andersson, modified by Daniel Jalkut to add\n# \"--revision HEAD\" to the svn info line, which allows\n# the latest revision to always be used.\n\n# further modified by Augie Fackler to be gross and sh-based in places\n# so that you can have svn installed anywhere\nPATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin\nffmpeg_rev=`cat \"$SYMROOT/Universal/buildid\"`\nREV=`svnversion -n ./`\necho $REV\n\necho | perl <<EOF\nuse strict;\ndie \"\\$0: Must be run from Xcode\" unless \\$ENV{\"BUILT_PRODUCTS_DIR\"};\n\nmy \\$INFO = \"\\$ENV{BUILT_PRODUCTS_DIR}/\\$ENV{WRAPPER_NAME}/Contents/Info.plist\";\n\nmy \\$version = \"$REV\";\n\n# (Match the last group of digits and optional letter M/S):\n\n# ugly yet functional (barely) regex by Daniel Jalkut:\n#$version =~ s/([\\d]*:)(\\d+[M|S]*).*/$2/;\n\n# better yet still functional regex via Kevin \"Regex Nerd\" Ballard\n(\\$version =~ m/\\d+[MS]*\\$/) && (\\$version = \\$&);\n\nopen(FH, \"\\$INFO\") or die \"\\$0: \\$INFO: $!\";\nmy \\$info = join(\"\", <FH>);\nclose(FH);\n\n#\\$info =~ s/([\\t ]+<key>CFBundleVersion<\\/key>\\n[\\t ]+<string>).*?(<\\/string>)/\\$1\\$version\\$2/;\n\\$info =~ s/SVNREVISION/\\$version/;\n\\$info =~ s/FFMPEGREVISION/$ffmpeg_rev/;\n\nopen(FH, \">\\$INFO\") or die \"\\$0: \\$INFO: \\$!\";\nprint FH \\$info;\nclose(FH);\nEOF\n"; 
     1546                }; 
     1547                3D0B9E090EB37E8300C4F556 /* ShellScript */ = { 
    15341548                        isa = PBXShellScriptBuildPhase; 
    15351549                        buildActionMask = 2147483647; 
  • trunk/Plists/PerianPane-Info.plist

    r961 r972  
    3434        <key>CFBundleVersion</key> 
    3535        <string>1.1.2</string> 
     36        <key>CFBundleGetInfoString</key> 
     37        <string>1.1.2 (SVNREVISION ffmpeg: FFMPEGREVISION), Copyright 2007 The Perian Team</string> 
    3638        <key>CFBundleName</key> 
    3739        <string>Perian</string>