1*83ee113eSDavid van Moolenbroek#!/bin/sh 2*83ee113eSDavid van Moolenbroek# 3*83ee113eSDavid van Moolenbroek# Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") 4*83ee113eSDavid van Moolenbroek# 5*83ee113eSDavid van Moolenbroek# Permission to use, copy, modify, and/or distribute this software for any 6*83ee113eSDavid van Moolenbroek# purpose with or without fee is hereby granted, provided that the above 7*83ee113eSDavid van Moolenbroek# copyright notice and this permission notice appear in all copies. 8*83ee113eSDavid van Moolenbroek# 9*83ee113eSDavid van Moolenbroek# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10*83ee113eSDavid van Moolenbroek# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11*83ee113eSDavid van Moolenbroek# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12*83ee113eSDavid van Moolenbroek# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13*83ee113eSDavid van Moolenbroek# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14*83ee113eSDavid van Moolenbroek# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15*83ee113eSDavid van Moolenbroek# PERFORMANCE OF THIS SOFTWARE. 16*83ee113eSDavid van Moolenbroek 17*83ee113eSDavid van Moolenbroek# Id: bindvar.sh,v 1.2 2009/12/02 20:43:52 sar Exp 18*83ee113eSDavid van Moolenbroek 19*83ee113eSDavid van Moolenbroek# Create a file with the base directory and gmake pat for 20*83ee113eSDavid van Moolenbroek# use by the bind/Makefile, we do this to minimize portability 21*83ee113eSDavid van Moolenbroek# concerns. 22*83ee113eSDavid van Moolenbroek 23*83ee113eSDavid van Moolenbroekbinddir=`pwd` 24*83ee113eSDavid van Moolenbroekgmake= 25*83ee113eSDavid van Moolenbroekfor x in gmake gnumake make; do 26*83ee113eSDavid van Moolenbroek if $x --version 2>/dev/null | grep GNU > /dev/null; then 27*83ee113eSDavid van Moolenbroek gmake=$x 28*83ee113eSDavid van Moolenbroek break; 29*83ee113eSDavid van Moolenbroek fi 30*83ee113eSDavid van Moolenbroekdone 31*83ee113eSDavid van Moolenbroek 32*83ee113eSDavid van Moolenbroekcat <<EOF > bind/bindvar.tmp 33*83ee113eSDavid van Moolenbroekbinddir=$binddir/bind 34*83ee113eSDavid van MoolenbroekGMAKE=$gmake 35*83ee113eSDavid van MoolenbroekEOF 36