nt-kit revision ea94d370123a5892f6c47a97f21d1b28d44bb168
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# Copyright (C) 1999-2001 Internet Software Consortium.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# Permission to use, copy, modify, and/or distribute this software for any
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# purpose with or without fee is hereby granted, provided that the above
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# copyright notice and this permission notice appear in all copies.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# PERFORMANCE OF THIS SOFTWARE.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# XXX no command line options at all. especially useful would be a way
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# to specify the target directory on the NT machine, since it is needed
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# in the Makefiles and otherwise config.status.win32 needs to be edited.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# XXX long term something different clearly needs to be done, so someone
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# without any Unix boxes at all could download the source kit and compile.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# it'll happen; it has been a higher priority just to try to work
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# on the code issues.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync echo "$0: must be run in bind9 top level directory" >&2
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncif test -e "$dstdir/version"; then
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# Try to make an effort to not wipe out current directory or non-bind directory
f0ab104f070bc7f569404826fea1828ed985638cvboxsync echo "$0: dstdir must not be current directory" >&2
f0ab104f070bc7f569404826fea1828ed985638cvboxsync echo "$0: existing dstdir must be a bind9 source directory" >&2
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# XXX Tale BSD/OS special
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# Start with a clean slate. This is not done in the source tree before
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# the copy so as not to disturb things there.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# XXX header files that (currently) need to be built on Unix
f0ab104f070bc7f569404826fea1828ed985638cvboxsync##make code.h include/dns/enumtype.h include/dns/enumclass.h include/dns/rdatastruct.h
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# XXX Need a better way
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncperl -pi -e '$_ = "" if /chmod\(.*\)/' lib/dns/sec/dst/dst_parse.c
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncperl -pi -e 'last if /^##confparser\.c/' lib/dns/config/Makefile.in
f0ab104f070bc7f569404826fea1828ed985638cvboxsync# Adjust Makefiles to have NT paths and nmake-compatible variable expansion.
s/\.c\.o:/.c.obj:/;
if $DOZIP; then