summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-06-27 19:54:54 +0000
committerChris Wilson <chris+github@qwirx.com>2007-06-27 19:54:54 +0000
commit2de49a8682edac16c95faa8bcbc9f16a306cc762 (patch)
treefd7094d0053ea547f41aad8ec1177ff6a95a8a5c
parent38d1e9596510560674dd80b6ed6b6e2c3ba5d1f0 (diff)
Handle USE_SVN_VERSION in the middle of a version string.
-rw-r--r--infrastructure/BoxPlatform.pm.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/infrastructure/BoxPlatform.pm.in b/infrastructure/BoxPlatform.pm.in
index 828516e2..b034eed1 100644
--- a/infrastructure/BoxPlatform.pm.in
+++ b/infrastructure/BoxPlatform.pm.in
@@ -51,7 +51,7 @@ BEGIN
$product_name = <VERSION>;
chomp $product_name;
close VERSION;
- if($product_version eq 'USE_SVN_VERSION')
+ if($product_version =~ /USE_SVN_VERSION/)
{
# for developers, use SVN version
my $svnversion = `svnversion .`;
@@ -70,7 +70,7 @@ BEGIN
$svnurl =~ m!box/(.+)$!;
my $svndir = $1;
$svndir =~ tr/0-9A-Za-z/_/c;
- $product_version = $svndir.'_'.$svnversion;
+ $product_version =~ s/USE_SVN_VERSION/$svndir.'_'.$svnversion/e;
}
# where to put the files