"Fossies" - the Fresh Open Source Software Archive

Member "nss-mdns-0.10/bootstrap.sh" (5 Aug 2005, 1376 Bytes) of package /linux/misc/dns/old/nss-mdns-0.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 # $Id: bootstrap.sh 82 2005-08-05 23:51:50Z lennart $
    3 
    4 # This file is part of nss-mdns.
    5 #
    6 # nss-mdns is free software; you can redistribute it and/or modify it
    7 # under the terms of the GNU Lesser General Public License as published by
    8 # the Free Software Foundation; either version 2 of the License, or
    9 # (at your option) any later version.
   10 #
   11 # nss-mdns is distributed in the hope that it will be useful, but
   12 # WITHOUT ANY WARRANTY; without even the implied warranty of
   13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   14 # General Public License for more details.
   15 #
   16 # You should have received a copy of the GNU Lesser General Public License
   17 # along with nss-mdns; if not, write to the Free Software Foundation,
   18 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
   19 
   20 VERSION=1.9
   21 
   22 run_versioned() {
   23     local P
   24     type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
   25 
   26     shift 2
   27     "$P" "$@"
   28 }
   29 
   30 if [ "x$1" = "xam" ] ; then
   31     set -ex
   32     run_versioned automake "$VERSION" -a -c --foreign
   33     ./config.status
   34 else 
   35     set -ex
   36 
   37     rm -rf autom4te.cache
   38     rm -f config.cache
   39 
   40     run_versioned aclocal "$VERSION"
   41     libtoolize -c --force
   42     autoheader
   43     run_versioned automake "$VERSION" -a -c --foreign
   44     autoconf -Wall
   45 
   46     CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
   47 
   48     make clean
   49 fi