head 1.10; access; symbols SHTOOL_2_0_8:1.10 SHTOOL_2_0_7:1.8 SHTOOL_2_0_6:1.7 SHTOOL_2_0_5:1.7 SHTOOL_2_0_4:1.7 SHTOOL_2_0_3:1.6 SHTOOL_2_0_2:1.6 SHTOOL_2_0_1:1.5 SHTOOL_2_0_0:1.5 SHTOOL_2_0b3:1.5 SHTOOL_2_0b2:1.5 SHTOOL_2_0b1:1.5 SHTOOL_1_6:1.2.0.2 SHTOOL_1_6_2:1.2 SHTOOL_1_6_1:1.2 SHTOOL_1_6_0:1.1; locks; strict; comment @# @; 1.10 date 2008.04.02.20.13.43; author rse; state Exp; branches; next 1.9; commitid eB5Wirx8MdMyDzXs; 1.9 date 2008.04.02.20.12.04; author rse; state Exp; branches; next 1.8; commitid xd2Jq3h5PA50DzXs; 1.8 date 2007.05.19.19.09.39; author rse; state Exp; branches; next 1.7; commitid OPUF1UBbllBTwzis; 1.7 date 2006.02.04.09.43.25; author rse; state Exp; branches; next 1.6; commitid oWk7BmnyAitJtfkr; 1.6 date 2005.06.15.08.14.35; author rse; state Exp; branches; next 1.5; 1.5 date 2004.02.18.09.57.19; author rse; state Exp; branches; next 1.4; 1.4 date 2004.01.01.16.54.20; author rse; state Exp; branches; next 1.3; 1.3 date 2003.02.11.13.00.49; author rse; state Exp; branches; next 1.2; 1.2 date 2002.07.11.17.23.25; author rse; state Exp; branches; next 1.1; 1.1 date 2002.02.01.14.58.04; author rse; state Exp; branches; next ; desc @@ 1.10 log @adjust copyright for year 2008 @ text @## ## devtool.func -- Development Tool Functions ## Copyright (c) 2001-2008 Ralf S. Engelschall ## devtool_require () { t="$1"; o="$2"; p="$3"; e="$4"; a="$5" v=`($t $o | head -1 | awk "{ print \\\$$p; }") 2>/dev/null` if [ ".$v" = . ]; then echo "devtool:ERROR: unable to determine version of $t" 1>&2 exit 1 fi case "$v" in $e ) ;; $a ) echo "devtool:WARNING: $t version $v still accepted, although expected $e." 1>&2 ;; * ) echo "devtool:ERROR: $t version $e expected, but found $v." 1>&2 exit 1 ;; esac echo "$v" } devtool_autogen () { tool=$1 shift case $tool in autoconf ) autoconf_version=`devtool_require autoconf --version 4 "$1" "$2"` echo "generating (GNU Autoconf $autoconf_version): configure config.h.in" autoconf #autoheader 2>&1 | grep -v "is unchanged" rm -rf autom4te.cache >/dev/null 2>&1 ;; libtool ) libtoolize_version=`devtool_require libtoolize --version 4 "$1" "$2"` echo "generating (GNU Libtool $libtoolize_version): ltmain.sh, libtool.m4, config.guess, config.sub" libtoolize --force --copy >/dev/null 2>&1 cp `libtoolize --force --copy --dry-run | grep "add the contents of" |\ sed -e 's;^[^\`]*\`;;' -e "s;'.*;;"` libtool.m4 ;; shtool ) shtoolize_version=`devtool_require shtoolize -v 3 "$1" "$2"` echo "generating (GNU Shtool $shtoolize_version): shtool" shift shift shtoolize -q "$@@" ;; esac } devtool_autoclean () { tool=$1 shift case $tool in autoconf ) echo "removing: configure config.h.in" rm -f configure config.h.in ;; libtool ) echo "removing: ltmain.sh libtool.m4 config.guess config.sub" rm -f ltmain.sh libtool.m4 config.guess config.sub ;; shtool ) echo "removing: shtool" rm -f shtool ;; esac } @ 1.9 log @remove trailing spaces @ text @d3 1 a3 1 ## Copyright (c) 2001-2007 Ralf S. Engelschall @ 1.8 log @Adjust copyright for year 2007. @ text @d3 1 a3 1 ## Copyright (c) 2001-2007 Ralf S. Engelschall @ 1.7 log @Adjust copyright for year 2006 @ text @d3 1 a3 1 ## Copyright (c) 2001-2006 Ralf S. Engelschall @ 1.6 log @Adjust copyright for year 2005 @ text @d3 1 a3 1 ## Copyright (c) 2001-2005 Ralf S. Engelschall @ 1.5 log @disable unused stuff @ text @d3 1 a3 1 ## Copyright (c) 2001-2004 Ralf S. Engelschall @ 1.4 log @Bump copyright year for 2004 @ text @d35 1 a35 1 autoheader 2>&1 | grep -v "is unchanged" @ 1.3 log @Bump year in copyright messages to cover new year 2003. @ text @d3 1 a3 1 ## Copyright (c) 2001-2003 Ralf S. Engelschall @ 1.2 log @Removed not-existing --min-size option from the usage of "shtool rotate". The name is just --size. Submitted by: Thomas Linden @ text @d3 1 a3 1 ## Copyright (c) 2001-2002 Ralf S. Engelschall @ 1.1 log @switch to devtool environment @ text @d3 1 a3 1 ## Copyright (c) 2001 Ralf S. Engelschall d35 2 @