summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-06-27 20:18:43 +0000
committerChris Wilson <chris+github@qwirx.com>2007-06-27 20:18:43 +0000
commite130a12a74d33d86fa61e8edaf3e3720f4f09f90 (patch)
tree873b7f16b44fd2cd4e85b50727720f86a2009e6e /infrastructure
parent2de49a8682edac16c95faa8bcbc9f16a306cc762 (diff)
Replace version in VERSION.txt, if it contains USE_SVN_VERSION.
Diffstat (limited to 'infrastructure')
-rwxr-xr-xinfrastructure/makedistribution.pl.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/infrastructure/makedistribution.pl.in b/infrastructure/makedistribution.pl.in
index d2c29660..314259f6 100755
--- a/infrastructure/makedistribution.pl.in
+++ b/infrastructure/makedistribution.pl.in
@@ -136,6 +136,7 @@ copy_from_list("$dist_root/DISTRIBUTION-MANIFEST.txt");
or die "Copy of root extra files failed";
unlink "$base_name/DISTRIBUTION-MANIFEST.txt"
or die "Delete of DISTRIBUTION-MANIFEST.txt file failed";
+replace_version_in("VERSION.txt");
# produce a new modules file
my $modules = gensym;
@@ -338,6 +339,7 @@ sub replace_version_in
while(<IN>)
{
s/###DISTRIBUTION-VERSION-NUMBER###/$version/g;
+ s/.*USE_SVN_VERSION.*/$version/g;
print OUT
}