IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3908


Ignore:
Timestamp:
May 12, 2005, 3:37:54 PM (21 years ago)
Author:
jhoblitt
Message:

rename lib_name -> pkg_name

Location:
trunk/glueforge
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/glueforge.in

    r3861 r3908  
    33# Copyright (C) 2005  Joshua Hoblitt
    44#
    5 # $Id: glueforge.in,v 1.7 2005-05-06 04:07:42 jhoblitt Exp $
     5# $Id: glueforge.in,v 1.8 2005-05-13 01:37:53 jhoblitt Exp $
    66
    77use strict;
     
    5151}
    5252
    53 $data{object_name} = $data{table_name} . "Row";
    54 $data{lib_name}    = $data{table_name} . "db";
    55 $data{file_name}   = $data{lib_name};
     53$data{pkg_name}    = $data{table_name} . "db";
     54$data{file_name}   = $data{pkg_name};
    5655$data{namespace}   = $data{table_name};
     56$data{object_name} = $data{namespace} . "Row";
    5757
    5858my @items;
     
    7777$data{columns} = \@items;
    7878
    79 $output = $data{lib_name} unless defined $output;
     79$output = $data{pkg_name} unless defined $output;
    8080
    8181my %tt = (
    8282    'autogen_sh.tt'         => "$output/autogen.sh",
    8383    'configure_ac.tt'       => "$output/configure.ac",
    84     'pkgconfig_pc_in.tt'    => "$output/$data{lib_name}.pc.in",
     84    'pkgconfig_pc_in.tt'    => "$output/$data{pkg_name}.pc.in",
    8585    'top_makefile_am.tt'    => "$output/Makefile.am",
    8686    'src_makefile_am.tt'    => "$output/src/Makefile.am",
  • trunk/glueforge/templates/psdb/autogen_sh.tt

    r3859 r3908  
    88cd $srcdir
    99
    10 PROJECT=[% lib_name %]
     10PROJECT=[% pkg_name %]
    1111TEST_TYPE=-f
    1212# change this to be a unique filename in the top level dir
  • trunk/glueforge/templates/psdb/configure_ac.tt

    r3860 r3908  
    33AC_PREREQ(2.59)
    44
    5 AC_INIT([[% lib_name %]], [0.0.1], [pan-starrs.ifa.hawaii.edu])
    6 AC_CONFIG_SRCDIR([[% lib_name %].pc.in])
     5AC_INIT([[% pkg_name %]], [0.0.1], [pan-starrs.ifa.hawaii.edu])
     6AC_CONFIG_SRCDIR([[% pkg_name %].pc.in])
    77
    88AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
     
    1818
    1919dnl is this the best was to setup recursive CFLAGS?
    20 [% lib_name %]_CFLAGS="-Wall -pedantic -std=c99"
    21 AC_SUBST([[% lib_name %]_CFLAGS])
     20[% pkg_name %]_CFLAGS="-Wall -pedantic -std=c99"
     21AC_SUBST([[% pkg_name %]_CFLAGS])
    2222
    23 AC_CONFIG_FILES([% lib_name %].pc Makefile src/Makefile)
     23AC_CONFIG_FILES([% pkg_name %].pc Makefile src/Makefile)
    2424AC_OUTPUT
  • trunk/glueforge/templates/psdb/pkgconfig_pc_in.tt

    r3728 r3908  
    44includedir=@includedir@
    55
    6 Name: [% lib_name %]
     6Name: [% pkg_name %]
    77Description: some library
    88Version: @VERSION@
    99Requires: pslib
    10 Libs: -L${libdir} -l[% lib_name %]
     10Libs: -L${libdir} -l[% pkg_name %]
    1111Cflags: -I${includedir}
  • trunk/glueforge/templates/psdb/src_makefile_am.tt

    r3735 r3908  
    1 AM_CFLAGS = @[% lib_name %]_CFLAGS@
     1AM_CFLAGS = @[% pkg_name %]_CFLAGS@
    22
    3 include_HEADERS = [% lib_name %].h
    4 lib_LTLIBRARIES = lib[% lib_name %].la
    5 lib[% lib_name %]_la_CFLAGS  = $(PSLIB_CFLAGS) $(AM_CFLAGS)
    6 lib[% lib_name %]_la_LIBS    = $(PSLIB_LIBS) $(AM_LIBS)
    7 lib[% lib_name %]_la_LDFLAGS = -release $(PACKAGE_VERSION)
    8 lib[% lib_name %]_la_SOURCES = \
    9     [% lib_name %].h \
    10     [% lib_name %].c
     3include_HEADERS = [% pkg_name %].h
     4lib_LTLIBRARIES = lib[% pkg_name %].la
     5lib[% pkg_name %]_la_CFLAGS  = $(PSLIB_CFLAGS) $(AM_CFLAGS)
     6lib[% pkg_name %]_la_LIBS    = $(PSLIB_LIBS) $(AM_LIBS)
     7lib[% pkg_name %]_la_LDFLAGS = -release $(PACKAGE_VERSION)
     8lib[% pkg_name %]_la_SOURCES = \
     9    [% pkg_name %].h \
     10    [% pkg_name %].c
Note: See TracChangeset for help on using the changeset viewer.