Changeset 3730 for trunk/lang


Ignore:
Timestamp:
Jun 29, 2013, 3:43:27 PM (11 years ago)
Author:
ldelgass
Message:

Merge version/build variables for Tcl from 1.3 release branch.

Location:
trunk/lang/tcl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/scripts/result.tcl

    r3362 r3730  
    4040    }
    4141
    42     $libobj put tool.version.rappture.revision "\$LastChangedRevision$"
     42    # I can't stand that there are two versions of this.  I spend more time
     43    # tracking down problems that exist in the one version but not the other.
     44    # For example, it matters if the tool is running TCL or some other
     45    # language.
     46
     47    $libobj put tool.version.rappture.version $::Rappture::version
     48    $libobj put tool.version.rappture.revision $::Rappture::build
    4349    $libobj put tool.version.rappture.modified "\$LastChangedDate$"
    4450    $libobj put tool.version.rappture.language "tcl"
  • trunk/lang/tcl/src/Makefile.in

    r2890 r3730  
    3939  -I$(srcdir)/../../../src/objects \
    4040  -I$(includedir)
    41 version         = @PACKAGE_VERSION@
    42 DEFINES         = -DPACKAGE_VERSION=\"$(version)\"
     41RAPPTURE_VERSION = @PACKAGE_VERSION@
     42SVN_VERSION     := $(shell svnversion $(srcdir))
     43DEFINES         = -DSVN_VERSION=\"$(SVN_VERSION)\" \
     44                  -DRAPPTURE_VERSION=\"$(RAPPTURE_VERSION)\"
    4345
    4446RANLIB          = @RANLIB@
     
    7981# Not using     RpLibraryTclInterface.o \
    8082
    81 name        = Rappture$(version)
     83name        = Rappture$(RAPPTURE_VERSION)
    8284libname     = $(name)
    8385lib         = $(libname)$(SHLIB_SUFFIX)
  • trunk/lang/tcl/src/Rappture_Init.c

    r3404 r3730  
    5050        return TCL_ERROR;
    5151    }
    52     if (Tcl_PkgProvide(interp, "Rappture", PACKAGE_VERSION) != TCL_OK) {
     52    if (Tcl_PkgProvide(interp, "Rappture", RAPPTURE_VERSION) != TCL_OK) {
     53        return TCL_ERROR;
     54    }
     55    if (Tcl_SetVar(interp, "::Rappture::version", RAPPTURE_VERSION,
     56                   TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG) == NULL) {
     57        return TCL_ERROR;
     58    }
     59    if (Tcl_SetVar(interp, "::Rappture::build", SVN_VERSION,
     60                   TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG) == NULL) {
    5361        return TCL_ERROR;
    5462    }
Note: See TracChangeset for help on using the changeset viewer.