head 1.9; access; symbols OSSP_RC_0_7_3:1.9 OSSP_RC_0_7_2:1.9 OSSP_RC_0_7_1:1.8 OSSP_RC_ALPHA_06:1.7 OSSP_RC_EXBROKEN:1.7 OSSP_RC_SPEC:1.3; locks; strict; comment @# @; 1.9 date 2003.07.09.07.13.58; author thl; state Exp; branches; next 1.8; 1.8 date 2003.07.07.12.55.42; author ms; state Exp; branches; next 1.7; 1.7 date 2002.04.08.15.37.10; author ms; state Exp; branches; next 1.6; 1.6 date 2002.03.26.17.11.06; author ms; state Exp; branches; next 1.5; 1.5 date 2002.02.08.18.35.03; author ms; state Exp; branches; next 1.4; 1.4 date 2002.02.04.21.46.00; author ms; state Exp; branches; next 1.3; 1.3 date 2002.01.23.16.51.54; author ms; state Exp; branches; next 1.2; 1.2 date 2002.01.21.18.00.07; author ms; state Exp; branches; next 1.1; 1.1 date 2002.01.18.16.47.17; author ms; state Exp; branches; next ; desc @@ 1.9 log @take updated messages from lmtp2nntp @ text @## ## devtool.func -- Development Tool Functions ## Copyright (c) 2001-2003 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 accepted, but expected $e." 1>&2 ;; * ) echo "devtool:ERROR: $t version $v NOT acceptable, requires $e." 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 ac_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 ac_config.h.in" rm -f configure ac_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.8 log @Correct and update copyrights and source headers. @ text @d17 1 a17 1 echo "devtool:WARNING: $t version $v still accepted, although expected $e." 1>&2 d20 1 a20 1 echo "devtool:ERROR: $t version $e expected, but found $v." 1>&2 d73 1 @ 1.7 log @Bring build back to life and remove val code. @ text @d3 1 a3 1 ## Copyright (c) 2001-2002 Ralf S. Engelschall @ 1.6 log @Vacation flush, mostly build configuration details. Its not building very clean right now. @ text @d35 1 a36 1 autoheader 2>&1 | grep -v "is unchanged" @ 1.5 log @Use OSSP val library. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d35 1 @ 1.4 log @Changed to rc_config.h.in and some other build configuration corrections. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d33 1 a33 1 echo "generating (GNU Autoconf $autoconf_version): configure rc_config.h.in" d59 2 a60 2 echo "removing: configure rc_config.h.in" rm -f configure rc_config.h.in @ 1.3 log @Back out changes, removing Automake logic at Ralf's request. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d33 1 a33 1 echo "generating (GNU Autoconf $autoconf_version): configure config.h.in" d59 2 a60 2 echo "removing: configure config.h.in" rm -f configure config.h.in @ 1.2 log @Changed autoconf and autoheader ordering, added automake and aclocal logic. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @a30 5 aclocal ) aclocal_version=`devtool_require aclocal --version 4 "$1" "$2"` echo "generating (GNU Aclocal $aclocal_version): aclocal.m4" aclocal ;; a36 7 automake ) # We might depend on config.h.in (autoheader --version) /dev/null 2>&1 && autoheader automake_version=`devtool_require automake --version 4 "$1" "$2"` echo "generating (GNU Automake $automake_version): INSTALL Makefile.in depcomp install-sh missing mkinstalldirs stamp-h.in" automake --add-missing --copy --gnu ;; d40 1 a40 1 libtoolize --force --copy --automake >/dev/null 2>&1 a60 8 ;; automake ) echo "removing: INSTALL Makefile.in depcomp install-sh missing mkinstalldirs stamp-h.in" rm -f INSTALL Makefile.in depcomp install-sh missing mkinstalldirs stamp-h.in ;; aclocal ) echo "removing: aclocal.m4" rm -f aclocal.m4 @ 1.1 log @Give rc a devtool. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d31 5 d42 7 d52 1 a52 1 libtoolize --force --copy >/dev/null 2>&1 d73 8 @