head 1.8; access; symbols FSL_1_7_0:1.8 CFG_0_9_11:1.8 FSL_1_6_1:1.6 CFG_0_9_10:1.6 FSL_1_6_0:1.6 FSL_1_6b2:1.6 CFG_0_9_9:1.6 FSL_1_6b1:1.6 CFG_0_9_8:1.6 CFG_0_9_7:1.5 CFG_0_9_6:1.5 CFG_0_9_5:1.5 CFG_0_9_4:1.5 FSL_1_5_0:1.4 FSL_1_5a3:1.4 CFG_0_9_3:1.4 FSL_1_5a2:1.3 FSL_1_5a1:1.3 FSL_1_4_0:1.3 FSL_1_4b1:1.3 CFG_0_9_2:1.3 CFG_0_9_1:1.3 FSL_1_4a1:1.3 FSL_1_3_0:1.3 FSL_1_3b1:1.3 FSL_1_2_1:1.3 FSL_1_2_0:1.3 FSL_1_1_0:1.3 FSL_1_1b1:1.3 FSL_1_0_8:1.3 FSL_1_0_7:1.3 FSL_1_0_6:1.1 FSL_1_0_5:1.1 FSL_1_0_4:1.1 FSL_1_0_3:1.1 FSL_1_0_2:1.1 FSL_1_0_1:1.1 FSL_1_0_0:1.1 FSL_0_9_0:1.1 CFG_0_9_0:1.1 FSL_0_1_12:1.1 FSL_0_1_11:1.1 FSL_0_1_10:1.1 FSL_0_1_9:1.1 FSL_0_1_8:1.1 FSL_0_1_7:1.1 FSL_0_1_6:1.1 FSL_0_1_5:1.1 FSL_0_1_1:1.1; locks; strict; comment @# @; 1.8 date 2006.08.10.19.35.56; author rse; state Exp; branches; next 1.7; commitid Isy241gp4yykKkIr; 1.7 date 2006.08.10.19.32.57; author rse; state Exp; branches; next 1.6; commitid KbosAzCq3U7jJkIr; 1.6 date 2004.12.31.19.16.25; author rse; state Exp; branches; next 1.5; 1.5 date 2004.07.17.07.37.55; author rse; state Exp; branches; next 1.4; 1.4 date 2004.04.23.10.25.22; author thl; state Exp; branches; next 1.3; 1.3 date 2003.01.06.11.17.43; author rse; state Exp; branches; next 1.2; 1.2 date 2002.11.10.12.12.23; author rse; state Exp; branches; next 1.1; 1.1 date 2002.07.09.08.29.19; author rse; state Exp; branches; next ; desc @@ 1.8 log @cleanup source tree for status as of 2006 @ text @#!/bin/sh ## ## OSSP cfg - Configuration Parsing ## Copyright (c) 2002-2006 Ralf S. Engelschall ## Copyright (c) 2002-2006 The OSSP Project ## ## This file is part of OSSP cfg, a configuration parsing library which ## can be found at http://www.ossp.org/pkg/lib/cfg/. ## ## 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. ## ## cfg-config.in: OSSP cfg build utility ## DIFS=' ' prefix="@@prefix@@" exec_prefix="@@exec_prefix@@" datarootdir="@@datarootdir@@" cfg_prefix="$prefix" cfg_exec_prefix="$exec_prefix" cfg_bindir="@@bindir@@" cfg_libdir="@@libdir@@" cfg_includedir="@@includedir@@" cfg_mandir="@@mandir@@" cfg_datadir="@@datadir@@" cfg_acdir="@@datadir@@/aclocal" cfg_cflags="@@CFLAGS@@" cfg_ldflags="@@LDFLAGS@@" cfg_libs="@@LIBS@@" cfg_version="@@CFG_VERSION_STR@@" help=no version=no usage="cfg-config" usage="$usage [--help] [--version] [--all]" usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]" usage="$usage [--cflags] [--ldflags] [--libs]" if [ $# -eq 0 ]; then echo "cfg-config:Error: Invalid option" 1>&2 echo "cfg-config: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 "OSSP cfg $cfg_version" exit 0 ;; --all) all=yes ;; --prefix) output="$output $cfg_prefix" ;; --exec-prefix) output="$output $cfg_exec_prefix" ;; --bindir) output="$output $cfg_bindir" ;; --libdir) output="$output $cfg_libdir" ;; --includedir) output="$output $cfg_includedir" ;; --mandir) output="$output $cfg_mandir" ;; --datadir) output="$output $cfg_datadir" ;; --acdir) output="$output $cfg_acdir" ;; --cflags) output="$output -I$cfg_includedir" output_extra="$output_extra $cfg_cflags" ;; --ldflags) output="$output -L$cfg_libdir" output_extra="$output_extra $cfg_ldflags" ;; --libs) output="$output -lcfg" output_extra="$output_extra $cfg_libs" ;; * ) echo "cfg-config:Error: Invalid option" 1>&2 echo "cfg-config:Usage: $usage" 1>&2 exit 1; ;; esac done IFS="$OIFS" if [ ".$prev" != . ]; then echo "cfg-config: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.7 log @bump before release @ text @d4 2 a5 3 ## Copyright (c) 2002-2005 Ralf S. Engelschall ## Copyright (c) 2002-2005 The OSSP Project ## Copyright (c) 2002-2005 Cable & Wireless @ 1.6 log @Adjust copyright messages for new year 2005. @ text @d37 1 @ 1.5 log @Adjust copyright messages for new year 2004. @ text @d4 3 a6 3 ## Copyright (c) 2002-2004 Ralf S. Engelschall ## Copyright (c) 2002-2004 The OSSP Project ## Copyright (c) 2002-2004 Cable & Wireless @ 1.4 log @remove sa relict from cfg-config.in; modify devtool.conf %version to prefix with additional underscores and run it to create a clean cfg_vers.c whose cfg_version does not conflict with cfg_version() in cfg_main @ text @d4 3 a6 3 ## Copyright (c) 2002-2003 Ralf S. Engelschall ## Copyright (c) 2002-2003 The OSSP Project ## Copyright (c) 2002-2003 Cable & Wireless Deutschland @ 1.3 log @update copyright messages for new year @ text @d85 1 a85 1 echo "OSSP sa $cfg_version" @ 1.2 log @remove trailing whitespaces @ text @d4 3 a6 3 ## Copyright (c) 2002 Ralf S. Engelschall ## Copyright (c) 2002 The OSSP Project ## Copyright (c) 2002 Cable & Wireless Deutschland @ 1.1 log @add standard OSSP autoconf/libtool/shtool environment @ text @d32 1 a32 1 DIFS=' @