[svn:parrot] r48691 - in trunk: compilers/opsc/src/Ops docs/project

cotto at svn.parrot.org cotto at svn.parrot.org
Fri Aug 27 08:34:24 UTC 2010


Author: cotto
Date: Fri Aug 27 08:34:24 2010
New Revision: 48691
URL: https://trac.parrot.org/parrot/changeset/48691

Log:
make opsc read version information from VERSION, update release guide accordingly

Modified:
   trunk/compilers/opsc/src/Ops/File.pm
   trunk/docs/project/release_manager_guide.pod

Modified: trunk/compilers/opsc/src/Ops/File.pm
==============================================================================
--- trunk/compilers/opsc/src/Ops/File.pm	Fri Aug 27 07:47:36 2010	(r48690)
+++ trunk/compilers/opsc/src/Ops/File.pm	Fri Aug 27 08:34:24 2010	(r48691)
@@ -295,8 +295,7 @@
 }
 
 method _set_version() {
-    my $config := _config();
-    my $version := $config<VERSION>;
+    my $version := pir::chopn__ssi(slurp('VERSION'), 1);
     #say("# $version");
     my @bits := split('.', $version);
     self<version_major> := @bits[0];

Modified: trunk/docs/project/release_manager_guide.pod
==============================================================================
--- trunk/docs/project/release_manager_guide.pod	Fri Aug 27 07:47:36 2010	(r48690)
+++ trunk/docs/project/release_manager_guide.pod	Fri Aug 27 08:34:24 2010	(r48691)
@@ -118,16 +118,9 @@
 
 =item f
 
-In the two files F<src/ops/core_ops.c> and F<include/parrot/oplib/core_ops.h>
-is the function C<Parrot_DynOp_core_a_b_c>, which has a name that includes
-the version number. a_b_c is the version number. You have to update this
-version number on two places in the file F<src/ops/core_ops.c>.
-In the file F<include/parrot/oplib/core_ops.h> you have to change this line:
-
- op_lib_t *Parrot_DynOp_core_a_b_c(PARROT_INTERP, long init);
-
-Ignore the warning to not edit this files. It is necessary to edit this files,
-so that "make" builds with the increased version number.
+Run C<./ops2c --core> (or C<make bootstrap-ops>, ignoring errors) followed by
+C<make reconfig> and C<make> to update the names of version-specific internal
+functions.
 
 =item g
 


More information about the parrot-commits mailing list