head 1.9; access; symbols LMTP2NNTP_1_4_1:1.9 LMTP2NNTP_1_4_0:1.9 VAR_1_1_3:1.9 VAR_1_1_2:1.8 VAR_1_1_1:1.7 LMTP2NNTP_1_3_0:1.7 LMTP2NNTP_1_3b2:1.7 LMTP2NNTP_1_3b1:1.7 LMTP2NNTP_1_3a3:1.7 LMTP2NNTP_1_3a2:1.7 LMTP2NNTP_1_3a1:1.7 VAR_1_1_0:1.7 VAR_1_0_0:1.6 LMTP2NNTP_1_2_0:1.5 LMTP2NNTP_1_2b4:1.5 LMTP2NNTP_1_2b3:1.5 LMTP2NNTP_1_2b2:1.5 LMTP2NNTP_1_2b1:1.5 LMTP2NNTP_1_2a8:1.5 LMTP2NNTP_1_2a7:1.5 LMTP2NNTP_1_2a6:1.5 LMTP2NNTP_1_2a5:1.5 LMTP2NNTP_1_2a4:1.5 VAR_0_9_0:1.5 LMTP2NNTP_1_2a3:1.4 OSSP_RC_SPEC:1.2; locks; strict; comment @# @; 1.9 date 2005.01.20.20.29.06; author rse; state Exp; branches; next 1.8; 1.8 date 2004.10.29.19.29.12; author rse; state Exp; branches; next 1.7; 1.7 date 2004.04.04.08.07.34; author rse; state Exp; branches; next 1.6; 1.6 date 2003.02.14.21.17.07; author rse; state Exp; branches; next 1.5; 1.5 date 2002.03.08.12.55.52; author rse; state Exp; branches; next 1.4; 1.4 date 2002.02.28.08.48.44; author rse; state Exp; branches; next 1.3; 1.3 date 2002.02.27.13.44.16; author rse; state Exp; branches; next 1.2; 1.2 date 2002.01.02.17.12.18; author rse; state Exp; branches; next 1.1; 1.1 date 2001.11.20.20.02.21; author rse; state Exp; branches; next ; desc @@ 1.9 log @Bumped year in copyright messages for new year 2005 @ text @#!/bin/sh ## ## OSSP var -- Variable Expansion ## Copyright (c) 2001-2005 Ralf S. Engelschall ## Copyright (c) 2001-2005 The OSSP Project (http://www.ossp.org/) ## Copyright (c) 2001-2005 Cable & Wireless (http://www.cw.com/) ## ## This file is part of OSSP var, a variable expansion ## library which can be found at http://www.ossp.org/pkg/lib/var/. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED `AS IS' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## ## var-config.in: library build utility ## DIFS=' ' # tool tool_name="var-config" # library version lib_name="OSSP Var" lib_version="@@VAR_VERSION_STR@@" # build paths prefix="@@prefix@@" exec_prefix="@@exec_prefix@@" bindir="@@bindir@@" libdir="@@libdir@@" includedir="@@includedir@@" mandir="@@mandir@@" datadir="@@datadir@@" # build options cflags="@@CFLAGS@@" ldflags="@@LDFLAGS@@" libs="@@LIBS@@" # option defaults help=no version=no usage="$tool_name" usage="$usage [--help] [--version] [--all]" usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir]" usage="$usage [--cflags] [--ldflags] [--libs]" if [ $# -eq 0 ]; then echo "$tool_name:Error: Invalid option" 1>&2 echo "$tool_name:Usage: $usage" 1>&2 exit 1 fi output='' output_extra='' all=no prev='' OIFS="$IFS" IFS="$DIFS" for option do if [ ".$prev" != . ]; then eval "$prev=\$option" prev='' continue fi case "$option" in -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg='' ;; esac case "$option" in --help|-h) echo "Usage: $usage" exit 0 ;; --version|-v) echo "$lib_name $lib_version" exit 0 ;; --all) all=yes ;; --prefix) output="$output $prefix" ;; --exec-prefix) output="$output $exec_prefix" ;; --bindir) output="$output $bindir" ;; --libdir) output="$output $libdir" ;; --includedir) output="$output $includedir" ;; --mandir) output="$output $mandir" ;; --datadir) output="$output $datadir" ;; --cflags) output="$output -I$includedir" output_extra="$output_extra $cflags" ;; --ldflags) output="$output -L$libdir" output_extra="$output_extra $ldflags" ;; --libs) output="$output -lvar" output_extra="$output_extra $libs" ;; * ) echo "$tool_name:Error: Invalid option" 1>&2 echo "$tool_name:Usage: $usage" 1>&2 exit 1; ;; esac done IFS="$OIFS" if [ ".$prev" != . ]; then echo "$tool_name:Error: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2 exit 1 fi if [ ".$output" != . ]; then if [ ".$all" = .yes ]; then output="$output $output_extra" fi echo $output fi @ 1.8 log @Fixed "var-config --libs" output @ text @d4 3 a6 3 ## Copyright (c) 2001-2004 Ralf S. Engelschall ## Copyright (c) 2001-2004 The OSSP Project (http://www.ossp.org/) ## Copyright (c) 2001-2004 Cable & Wireless (http://www.cw.com/) @ 1.7 log @adjust copyrights @ text @d127 1 a127 1 output="$output -lxds" @ 1.6 log @final polishing for release 1.0.0 @ text @d4 3 a6 3 ## Copyright (c) 2001-2003 Ralf S. Engelschall ## Copyright (c) 2001-2003 The OSSP Project (http://www.ossp.org/) ## Copyright (c) 2001-2003 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.5 log @polishing and copyright extension (add natural person) @ text @d4 3 a6 3 ## Copyright (c) 2001-2002 Ralf S. Engelschall ## Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) ## Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.4 log @URL fixing and additional documents @ text @d4 1 @ 1.3 log @style and text cleanups @ text @d8 1 a8 1 ## library which can be found at http://www.ossp.org/pkg/var/. @ 1.2 log @bump copyright year @ text @d3 1 a3 1 ## VAR - OSSP variable expression library. d7 1 a7 1 ## This file is part of OSSP VAR, an extensible data serialization @ 1.1 log @Apply standard environment for OSSP libraries. @ text @d3 3 a5 2 ## FOO - OSSP Foo Library ## Copyright (c) 2001 The OSSP Project d7 2 a8 2 ## This file is part of OSSP foo, an example library ## which can be found at http://www.ossp.org/pkg/foo/. d10 4 a13 1 ## ...[whole license (BSD) or license summary and reference (GPL)]... d15 14 a28 1 ## foo-config.in: library build utility d35 1 a35 1 tool_name="foo-config" d38 2 a39 2 lib_name="OSSP FOO" lib_version="@@FOO_VERSION_STR@@" @