IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8273


Ignore:
Timestamp:
Aug 10, 2006, 12:25:51 PM (20 years ago)
Author:
jhoblitt
Message:

add pkg_version support

Location:
trunk/glueforge
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/glueforge.in

    r6466 r8273  
    33# Copyright (C) 2005-2006  Joshua Hoblitt
    44#
    5 # $Id: glueforge.in,v 1.48 2006-02-22 02:30:09 jhoblitt Exp $
     5# $Id: glueforge.in,v 1.49 2006-08-10 22:25:51 jhoblitt Exp $
    66
    77use strict;
     
    210210    # global data
    211211
    212     my ($pkg_name, $pkg_namespace);
     212    my ($pkg_name, $pkg_namespace, $pkg_version);
    213213    unless (defined $glueforge_meta) {
    214214        # set default values
     
    224224            } elsif ($item->{name} eq 'pkg_namespace') {
    225225                $pkg_namespace = $item->{value};
     226            } elsif ($item->{name} eq 'pkg_version') {
     227                $pkg_version = $item->{value};
    226228            } else {
    227229                die "invalid glueforge METADATA key: $item->{name}";
     
    233235    die "pkg_namespace is required in complex config" unless defined
    234236        $pkg_namespace;
     237    die "pkg_version is required in complex config" unless defined
     238        $pkg_version;
    235239
    236240    my %data;
    237241    $data{pkg_name}         = $pkg_name;
    238242    $data{pkg_namespace}    = $pkg_namespace;
     243    $data{pkg_version}      = $pkg_version;
    239244
    240245    # setup one table per nested metadata
     
    378383
    379384A complex config file consists of a series of C<METADATA> blocks.  One (and
    380 only one) of these blocks I<must> be named C<glueforge>. This block
    381 contains the global package configuration data.  Only the keys C<pkg_name> and
    382 C<pkg_namespace> are allowed in this block and they are both required.
     385only one) of these blocks I<must> be named C<glueforge>. This block contains
     386the global package configuration data.  Only the keys C<pkg_name>,
     387C<pkg_namespace>, and C<pkg_version> are allowed in this block and they are
     388both required.
    383389
    384390All other C<METADATA> blocks describe a single table with the name of the
     
    393399    pkg_name        STR  foodb
    394400    pkg_namespace   STR  foo
     401    pkg_version     STR  0.0.1
    395402END
    396403
  • trunk/glueforge/templates/psdb/configure_ac.tt

    r6129 r8273  
    11AC_PREREQ(2.59)
    22
    3 AC_INIT([[% pkg_name %]], [0.0.1], [pan-starrs.ifa.hawaii.edu])
     3AC_INIT([[% pkg_name %]], [[% pkg_version %]], [pan-starrs.ifa.hawaii.edu])
    44AC_CONFIG_SRCDIR([[% pkg_name %].pc.in])
    55
Note: See TracChangeset for help on using the changeset viewer.