You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2014/08/15 03:03:36 UTC

git commit: Use specific X.Y.Z version in Build.PL.

Repository: lucy-clownfish
Updated Branches:
  refs/heads/prep_0.4.0 d9f238253 -> 5af0c9cae


Use specific X.Y.Z version in Build.PL.

Otherwise, if we take it from CFC.pm the dist will be named
Clownfish-CFC-X.YYYZZZ.tar.gz when we want Clownfish-CFC-X.Y.Z.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/5af0c9ca
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/5af0c9ca
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/5af0c9ca

Branch: refs/heads/prep_0.4.0
Commit: 5af0c9caea962631393be04ec313fd145b24bc15
Parents: d9f2382
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Thu Aug 14 16:50:17 2014 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Thu Aug 14 18:03:12 2014 -0700

----------------------------------------------------------------------
 compiler/perl/Build.PL   | 2 +-
 devel/bin/update_version | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/5af0c9ca/compiler/perl/Build.PL
----------------------------------------------------------------------
diff --git a/compiler/perl/Build.PL b/compiler/perl/Build.PL
index af7256b..020af01 100644
--- a/compiler/perl/Build.PL
+++ b/compiler/perl/Build.PL
@@ -24,7 +24,7 @@ my $builder = Clownfish::CFC::Build->new(
     license     => 'apache',
     dist_author =>
         'The Apache Lucy Project <dev at lucy dot apache dot org>',
-    dist_version_from => 'lib/Clownfish/CFC.pm',
+    dist_version       => '0.4.0',
     dist_abstract      => 'CFC Apache Clownfish compiler',
     requires           => { 'perl' => '5.8.3', },
     configure_requires => { 'Module::Build' => 0.280801 },

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/5af0c9ca/devel/bin/update_version
----------------------------------------------------------------------
diff --git a/devel/bin/update_version b/devel/bin/update_version
index ce1f9a8..dc01d4b 100755
--- a/devel/bin/update_version
+++ b/devel/bin/update_version
@@ -77,6 +77,12 @@ $buf =~ s/(^=head1\s+VERSION\s+)([\d.]+)/$1$x_y_z_version/m
     or die "no match";
 write_file( 'runtime/perl/lib/Clownfish.pod', $buf );
 
+# Update compiler Build.PL
+$buf = read_file('compiler/perl/Build.PL');
+$buf =~ s/(dist_version\ +=>\ +)'.+?'/$1'$x_y_z_version'/
+    or die "no match";
+write_file( 'compiler/perl/Build.PL', $buf );
+
 # Update runtime Build.PL
 $buf = read_file('runtime/perl/Build.PL');
 $buf =~ s/(dist_version\ +=>\ +)'.+?'/$1'$x_y_z_version'/