head 1.9; access; symbols EX_1_0_6:1.9 LMTP2NNTP_1_4_1:1.7 LMTP2NNTP_1_4_0:1.7 EX_1_0_5:1.7 LMTP2NNTP_1_3_0:1.6 LMTP2NNTP_1_3b2:1.6 LMTP2NNTP_1_3b1:1.6 LMTP2NNTP_1_3a3:1.6 LMTP2NNTP_1_3a2:1.6 LMTP2NNTP_1_3a1:1.6 EX_1_0_4:1.6 EX_1_0_3:1.6 OSSP_RC_0_7_3:1.5 OSSP_RC_0_7_2:1.5 OSSP_RC_0_7_1:1.5 OSSP_RC_ALPHA_06:1.5 OSSP_RC_EXBROKEN:1.5 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 EX_1_0_2:1.5 EX_1_0_1:1.4 LMTP2NNTP_1_2a6:1.3 LMTP2NNTP_1_2a5:1.3 EX_1_0_0:1.3 LMTP2NNTP_1_2a4:1.2 EX_0_9_1:1.2 LMTP2NNTP_1_2a3:1.2 EX_0_9_0:1.2; locks; strict; comment @# @; 1.9 date 2007.10.12.19.59.57; author rse; state Exp; branches; next 1.8; commitid 9SN7ivPOxnsC7lBs; 1.8 date 2006.08.10.19.49.33; author rse; state Exp; branches; next 1.7; commitid o4A6XFppdzD0PkIr; 1.7 date 2005.01.30.13.39.07; author rse; state Exp; branches; next 1.6; 1.6 date 2004.03.25.19.01.42; author rse; state Exp; branches; next 1.5; 1.5 date 2003.01.30.11.04.42; author rse; state Exp; branches; next 1.4; 1.4 date 2003.01.06.15.31.24; author rse; state Exp; branches; next 1.3; 1.3 date 2002.03.30.18.56.02; author rse; state Exp; branches; next 1.2; 1.2 date 2002.01.26.22.35.02; author rse; state Exp; branches; next 1.1; 1.1 date 2002.01.26.20.12.19; author rse; state Exp; branches; next ; desc @@ 1.9 log @prepare for release @ text @#!/bin/sh ## ## OSSP ex - Exception Handling ## Copyright (c) 2002-2007 Ralf S. Engelschall ## Copyright (c) 2002-2007 The OSSP Project ## ## This file is part of OSSP ex, an exception handling library ## which can be found at http://www.ossp.org/pkg/lib/ex/. ## ## 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. ## ## ex-config.in: library build utility ## DIFS=' ' # tool tool_name="ex-config" # library version lib_name="OSSP ex" lib_version="@@EX_VERSION_STR@@" # build paths prefix="@@prefix@@" exec_prefix="@@exec_prefix@@" datarootdir="@@datarootdir@@" 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 -lex" 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 @cleanup source tree @ text @d4 2 a5 2 ## Copyright (c) 2002-2006 Ralf S. Engelschall ## Copyright (c) 2002-2006 The OSSP Project @ 1.7 log @Adjusted copyright messages to include new year 2005. @ 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 d44 1 @ 1.6 log @bump and adjust copyright @ 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.5 log @final polishing @ 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 Germany @ 1.4 log @- consistently use "Exception Handling" - strip trailing whitespaces - adjust copyright for new year 2003 - consistently use OSSP ASCII-art @ text @d6 1 a6 1 ## Copyright (c) 2002-2003 Cable & Wireless Deutschland @ 1.3 log @bump version and fix URLs @ text @d3 4 a6 4 ## OSSP ex - Exception Handling Library ## Copyright (c) 2002 Ralf S. Engelschall ## Copyright (c) 2002 The OSSP Project ## Copyright (c) 2002 Cable & Wireless Deutschland d127 1 a127 1 output="$output -lxds" @ 1.2 log @fix license messages @ text @d9 1 a9 1 ## which can be found at http://www.ossp.org/pkg/ex/. @ 1.1 log @switch to our standard build environment @ text @d11 4 a14 4 ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## as published by the Free Software Foundation; either version ## 2.0 of the License, or (at your option) any later version. d16 12 a27 9 ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this file; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ## USA, or contact the OSSP project . @