mdnbuildtest.sh revision dafcb997e390efa4423883dafd100c975c4095d6
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2000, 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission to use, copy, modify, and distribute this software for any
7e6c9a9a733f7a57ace98e4692573f42a2cad0edBob Halley# purpose with or without fee is hereby granted, provided that the above
7e6c9a9a733f7a57ace98e4692573f42a2cad0edBob Halley# copyright notice and this permission notice appear in all copies.
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
7e6c9a9a733f7a57ace98e4692573f42a2cad0edBob Halley# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
7e6c9a9a733f7a57ace98e4692573f42a2cad0edBob Halley# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
0042d68e2f0d655d5a1088dd5f8be3c79c2477a6Brian Wellington# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
0042d68e2f0d655d5a1088dd5f8be3c79c2477a6Brian Wellington# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
d9059b0c38bd630c367d81424d72b1308cd74b04Tatuya JINMEI 神明達哉# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7e6c9a9a733f7a57ace98e4692573f42a2cad0edBob Halley# PERFORMANCE OF THIS SOFTWARE.
8c9fba44a41e3ea23e7e8405029980aba672f7ceEvan Hunt# $Id: mdnbuildtest.sh,v 1.3 2004/03/05 05:14:16 marka Exp $
d9059b0c38bd630c367d81424d72b1308cd74b04Tatuya JINMEI 神明達哉# XXXDCL This is currently much too specific to the environment in which
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt# it was written (NetBSD 1.5_alpha2 with libiconv in /usr/local/lib). It
440be4c866f6935ac069db79a414304507a664c2Michael Graff# is essentially just a copy of the commands I used to test building of
7e6c9a9a733f7a57ace98e4692573f42a2cad0edBob Halley# the mdnkit contributed source, and needs to be better generalized.
a8783019814daa36dd57afe3f527462822834c3bEvan Hunt# Directory was prepared with:
ad26c868910d4a7368fae94e5d7389d4139f7225Andreas Gustafsson# cvs export -r {tag} bind9
6b79e960e6ba2991aeb02a6c39af255ab7f06d99Mark Andrewspatch -p0 < $mdn/patch/bind9/patch.most > patch.out 2>&1
b4d79725458782ce4ae781255fc7a22614a8b484Bob Halleycmd="egrep '^Hunk' patch.out | egrep -v '^Hunk #[0-9]+ succeeded at [0-9]+\.$'"
90ace4c9e063e67fb452907d11bf29eae618a355Brian WellingtonCFLAGS=-I/usr/local/include ./configure --with-iconv='-L/usr/local/lib -liconv'
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafssondiff -u2 ./configure.orig ./configure > $mdn/patch/bind9/patch.configure
e334405421979688f2d838805ac67ee47bd62976Mark Andrews./configure --with-mdn=$mdntmp --with-iconv="-L/usr/local/lib -liconv"