Changeset 8273
- Timestamp:
- Aug 10, 2006, 12:25:51 PM (20 years ago)
- Location:
- trunk/glueforge
- Files:
-
- 2 edited
-
glueforge.in (modified) (6 diffs)
-
templates/psdb/configure_ac.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/glueforge.in
r6466 r8273 3 3 # Copyright (C) 2005-2006 Joshua Hoblitt 4 4 # 5 # $Id: glueforge.in,v 1.4 8 2006-02-22 02:30:09jhoblitt Exp $5 # $Id: glueforge.in,v 1.49 2006-08-10 22:25:51 jhoblitt Exp $ 6 6 7 7 use strict; … … 210 210 # global data 211 211 212 my ($pkg_name, $pkg_namespace );212 my ($pkg_name, $pkg_namespace, $pkg_version); 213 213 unless (defined $glueforge_meta) { 214 214 # set default values … … 224 224 } elsif ($item->{name} eq 'pkg_namespace') { 225 225 $pkg_namespace = $item->{value}; 226 } elsif ($item->{name} eq 'pkg_version') { 227 $pkg_version = $item->{value}; 226 228 } else { 227 229 die "invalid glueforge METADATA key: $item->{name}"; … … 233 235 die "pkg_namespace is required in complex config" unless defined 234 236 $pkg_namespace; 237 die "pkg_version is required in complex config" unless defined 238 $pkg_version; 235 239 236 240 my %data; 237 241 $data{pkg_name} = $pkg_name; 238 242 $data{pkg_namespace} = $pkg_namespace; 243 $data{pkg_version} = $pkg_version; 239 244 240 245 # setup one table per nested metadata … … 378 383 379 384 A 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. 385 only one) of these blocks I<must> be named C<glueforge>. This block contains 386 the global package configuration data. Only the keys C<pkg_name>, 387 C<pkg_namespace>, and C<pkg_version> are allowed in this block and they are 388 both required. 383 389 384 390 All other C<METADATA> blocks describe a single table with the name of the … … 393 399 pkg_name STR foodb 394 400 pkg_namespace STR foo 401 pkg_version STR 0.0.1 395 402 END 396 403 -
trunk/glueforge/templates/psdb/configure_ac.tt
r6129 r8273 1 1 AC_PREREQ(2.59) 2 2 3 AC_INIT([[% pkg_name %]], [ 0.0.1], [pan-starrs.ifa.hawaii.edu])3 AC_INIT([[% pkg_name %]], [[% pkg_version %]], [pan-starrs.ifa.hawaii.edu]) 4 4 AC_CONFIG_SRCDIR([[% pkg_name %].pc.in]) 5 5
Note:
See TracChangeset
for help on using the changeset viewer.
