xref: /netbsd-src/external/gpl2/xcvs/dist/cvs2netbsd (revision 274254cdae52594c1aa480a736aef78313d15c9c)
1*274254cdSchristos#! /bin/sh
2*274254cdSchristos#
3*274254cdSchristos#	$NetBSD: cvs2netbsd,v 1.1 2009/04/08 16:27:51 christos Exp $
4*274254cdSchristos#
5*274254cdSchristos# Copyright (c) 2000 The NetBSD Foundation, Inc.
6*274254cdSchristos# All rights reserved.
7*274254cdSchristos#
8*274254cdSchristos# Redistribution and use in source and binary forms, with or without
9*274254cdSchristos# modification, are permitted provided that the following conditions
10*274254cdSchristos# are met:
11*274254cdSchristos# 1. Redistributions of source code must retain the above copyright
12*274254cdSchristos#    notice, this list of conditions and the following disclaimer.
13*274254cdSchristos# 2. Redistributions in binary form must reproduce the above copyright
14*274254cdSchristos#    notice, this list of conditions and the following disclaimer in the
15*274254cdSchristos#    documentation and/or other materials provided with the distribution.
16*274254cdSchristos#
17*274254cdSchristos# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18*274254cdSchristos# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19*274254cdSchristos# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20*274254cdSchristos# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21*274254cdSchristos# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22*274254cdSchristos# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23*274254cdSchristos# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*274254cdSchristos# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25*274254cdSchristos# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26*274254cdSchristos# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27*274254cdSchristos# POSSIBILITY OF SUCH DAMAGE.
28*274254cdSchristos#
29*274254cdSchristos# cvs2netbsd: removes Id tag and unnecessary files before import of cvs into
30*274254cdSchristos# NetBSD's tree. Works on current directory.
31*274254cdSchristos
32*274254cdSchristos### Remove the $'s around the Id:
33*274254cdSchristosfor f in contrib/rcs2log.sh mkinstalldirs; do
34*274254cdSchristos	sed -e 's/\$\(Id[^\$]*\) \$/\1/' < $f > /tmp/cvstmp$$ && \
35*274254cdSchristos		mv /tmp/cvstmp$$ $f && echo Removed Id tag from $f
36*274254cdSchristosdone
37*274254cdSchristos
38*274254cdSchristos### Remove unnecessary files
39*274254cdSchristos### Christos: Perhaps not do this, or automate configure cleanup?
40*274254cdSchristosrm -rf emx os2 tools vms windows-NT zlib && \
41*274254cdSchristosrm -f build.com cvsnt.* */.cvsignore && \
42*274254cdSchristoscd doc && rm -f cvs-paper.ps cvs.aux cvs.info* cvs.ps \
43*274254cdSchristos		cvsclient.aux cvsclient.info* cvsclient.ps && \
44*274254cdSchristosecho Removed unnecessary files. You can import now.
45*274254cdSchristos
46*274254cdSchristosecho Path: src/gnu/dist/xcvs
47*274254cdSchristosecho Vendor: NONGNU
48*274254cdSchristosecho Versiontag: CVS1_XX_YY
49