xref: /netbsd-src/crypto/external/bsd/openssh/openssh2netbsd (revision c232f289ed172ffcad43649d76fba38dbb6e7c3e)
14054ffb0Schristos#! /bin/sh
24054ffb0Schristos#
3*c232f289Srillig#	$NetBSD: openssh2netbsd,v 1.6 2024/09/08 10:01:58 rillig Exp $
44054ffb0Schristos#
54054ffb0Schristos# Copyright (c) 2001 The NetBSD Foundation, Inc.
64054ffb0Schristos# All rights reserved.
74054ffb0Schristos#
84054ffb0Schristos# Redistribution and use in source and binary forms, with or without
94054ffb0Schristos# modification, are permitted provided that the following conditions
104054ffb0Schristos# are met:
114054ffb0Schristos# 1. Redistributions of source code must retain the above copyright
124054ffb0Schristos#    notice, this list of conditions and the following disclaimer.
134054ffb0Schristos# 2. Redistributions in binary form must reproduce the above copyright
144054ffb0Schristos#    notice, this list of conditions and the following disclaimer in the
154054ffb0Schristos#    documentation and/or other materials provided with the distribution.
164054ffb0Schristos#
174054ffb0Schristos# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
184054ffb0Schristos# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
194054ffb0Schristos# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
204054ffb0Schristos# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
214054ffb0Schristos# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
224054ffb0Schristos# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
234054ffb0Schristos# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
244054ffb0Schristos# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
254054ffb0Schristos# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
264054ffb0Schristos# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
274054ffb0Schristos# POSSIBILITY OF SUCH DAMAGE.
284054ffb0Schristos#
29*c232f289Srillig# openssh2netbsd:  convert an openssh source tree into netbsd openssh tree
304054ffb0Schristos
31d91dbd0bSchristosif [ -z "$1" ]; then
32d91dbd0bSchristos	echo "Usage: $0 <dir>" 1>&2
33d91dbd0bSchristos	exit 1
34d91dbd0bSchristosfi
35d91dbd0bSchristos
36d91dbd0bSchristosset -e
37d91dbd0bSchristoscd "$1"
38d91dbd0bSchristos
394054ffb0Schristos### Remove CVS
404054ffb0Schristosfind . -name CVS -print | xargs rm -r
414054ffb0Schristos
424054ffb0Schristos### Remove Makefile and subdirs
431c7715ddSchristosrm -f Makefile Makefile.inc
441c7715ddSchristosrm -fr ssh-add ssh scp ssh-agent sshd sftp-server ssh-keygen sftp ssh-keyscan ssh-keysign ssh-pkcs11-helper ssh-sk-helper sshd-session
454054ffb0Schristos
464054ffb0Schristosexit 0
47