OSSP CVS Repository

ossp - ossp-pkg/lmtp2nntp/autogen.sh 1.8
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/lmtp2nntp/autogen.sh 1.8
#!/bin/sh
##
##  Copyright (c) 2001 The OSSP Project <http://www.ossp.org/>
##  Copyright (c) 2001 Cable & Wireless Deutschland <http://www.cw.com/de/>
##
##  This file is part of OSSP lmtp2nntp, an LMTP speaking local
##  mailer which forwards mails as Usenet news articles via NNTP.
##  It can be found at http://www.ossp.org/pkg/lmtp2nntp/.
##
##  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.
##
##  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 <ossp@ossp.org>.
##
##  autogen.sh: auto-generate build environment
##

#   generator tools version sanity check
for spec in \
    "autoconf   --version 4 2.52  2.5*" \
    "shtoolize  -v        3 1.5.4 1.5.*"
do
    set -- $spec
    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 "$0:ERROR: unable to determine version of $t" 1>&2
        exit 1
    fi
    eval "${t}_version=\"$v\""
    case "$v" in
        $e )
            ;;
        $a )
            echo "$0:WARNING: $t version $v still accepted, although expected $e." 1>&2
            ;;
        * )
            echo "$0:ERROR: $t version $e expected, but found $v." 1>&2
            ;;
    esac
done

#   GNU Autoconf generation
echo "GNU Autoconf $autoconf_version -> configure, config.h.in"
autoconf
autoheader

#   GNU Shtool generation
echo "GNU Shtool $shtoolize_version -> shtool"
shtoolize -q all

#   perform same operation in subdirs
echo "===> str (autogen.sh)"
(cd str && ./autogen.sh)
echo "<=== str"
echo "===> l2 (devtool"
(cd l2 && ./devtool autogen)
echo "<=== l2"
echo "===> sa (devtool)"
(cd sa && ./devtool autogen)
echo "<=== sa"


CVSTrac 2.0.1