head	1.10;
access;
symbols
	netbsd-11-0-RC6:1.9
	netbsd-11-0-RC5:1.9
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.2
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.8
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.7
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.6
	netbsd-10-base:1.8
	netbsd-9-3-RELEASE:1.7
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.4
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.7
	cjep_staticlib_x:1.8.0.2
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.7
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	is-mlppp:1.7.0.8
	is-mlppp-base:1.7
	phil-wifi-20200406:1.7
	netbsd-8-2-RELEASE:1.6
	netbsd-9-0-RELEASE:1.7
	netbsd-9-0-RC2:1.7
	netbsd-9-0-RC1:1.7
	phil-wifi-20191119:1.7
	netbsd-9:1.7.0.6
	netbsd-9-base:1.7
	phil-wifi-20190609:1.7
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.7.0.4
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.7.0.2
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.5
	matt-nb8-mediatek:1.6.0.12
	matt-nb8-mediatek-base:1.6
	perseant-stdc-iso10646:1.6.0.10
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.8
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.6
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.5.0.14
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.6.0.4
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.5
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.5
	localcount-20160914:1.6
	netbsd-7-nhusb:1.5.0.12
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.2
	pgoyette-localcount-base:1.6
	netbsd-7-0-1-RELEASE:1.5
	netbsd-7-0:1.5.0.10
	netbsd-7-0-RELEASE:1.5
	gcc-4-8-5-pre-gcc-old-import:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	tls-maxphys-base:1.5
	tls-maxphys:1.5.0.8
	netbsd-7:1.5.0.6
	netbsd-7-base:1.5
	yamt-pagecache:1.5.0.4
	yamt-pagecache-base9:1.5
	tls-earlyentropy:1.5.0.2
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	imported-to-gcc-old-20140227-0107:1.5;
locks; strict;
comment	@# @;


1.10
date	2025.09.16.02.15.11;	author mrg;	state Exp;
branches;
next	1.9;
commitid	QUqmBE4aIo0PISaG;

1.9
date	2024.09.08.10.01.59;	author rillig;	state Exp;
branches;
next	1.8;
commitid	1cXQwWXoK5ugiZoF;

1.8
date	2020.06.02.08.03.59;	author mrg;	state Exp;
branches
	1.8.8.1;
next	1.7;
commitid	Aux0wVJVCWNBKCaC;

1.7
date	2018.02.08.19.33.26;	author mrg;	state Exp;
branches;
next	1.6;
commitid	8sutG1hfRCg9J5qA;

1.6
date	2016.03.12.21.51.02;	author mrg;	state Exp;
branches;
next	1.5;
commitid	EnaarZhsV3fxVoYy;

1.5
date	2014.02.23.05.46.28;	author mrg;	state Exp;
branches
	1.5.4.1
	1.5.8.1;
next	1.4;
commitid	5fsLjj8b821iDbqx;

1.4
date	2014.01.19.00.37.30;	author mrg;	state Exp;
branches;
next	1.3;
commitid	TFZjArvZOwTS2Flx;

1.3
date	2013.12.13.10.01.49;	author mrg;	state Exp;
branches;
next	1.2;
commitid	uOyGBhuGPnCimXgx;

1.2
date	2013.10.05.18.38.03;	author christos;	state Exp;
branches;
next	1.1;
commitid	t0thyweQnybYq88x;

1.1
date	2013.10.05.18.37.16;	author christos;	state Exp;
branches;
next	;
commitid	bKUTvWwCZgVHq88x;

1.8.8.1
date	2025.08.02.05.25.21;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.5.4.1
date	2014.02.23.05.46.28;	author yamt;	state dead;
branches;
next	1.5.4.2;
commitid	v7BzuaTHWIjEuyBx;

1.5.4.2
date	2014.05.22.16.53.12;	author yamt;	state Exp;
branches;
next	;
commitid	v7BzuaTHWIjEuyBx;

1.5.8.1
date	2014.02.23.05.46.28;	author tls;	state dead;
branches;
next	1.5.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.5.8.2
date	2014.08.19.23.53.09;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.10
log
@updates for GCC 14.
@
text
@#! /bin/sh
#
#	$NetBSD: gcc2netbsd,v 1.9 2024/09/08 10:01:59 rillig Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# gcc2netbsd:  convert a gcc source tree into a
# format suitable for import.  Works on first arg dir.
# You can run this only once if you want it to work.
#
# based on file 2netbsd
#
PROG="$(basename "$0")"

if [ -z "$1" ]
then
	echo "Usage: $PROG <directory>" 1>&2
	exit 1
fi
DIR="$1"

### Remove the $'s around RCS tags
cleantags "$DIR"

RM="
boehm-gc
gcc/ada
gcc/d
gcc/go
gcc/java
gcc/m2
gcc/po
gcc/rust
gcc/testsuite
gnattools
gotools
libada
libatomic
libcilkrts
libcpp/po
libffi
libgm2
libgo
libgomp/testsuite
libgrust
libiberty/testsuite
libitm
libjava
libmpx
libmudflap/testsuite
liboffloadmic
libphobos
libstdc++-v3/po
libstdc++-v3/testsuite
libvtv
zlib
"

find "$DIR" -name .cvsignore -exec rm -f {} +
find "$DIR" -name .gitignore -exec rm -f {} +
find "$DIR" -name .svn -type d -exec rm -fr {} +
for i in $RM; do
	rm -fr "$DIR/$i"
done

echo You can import now.  Use the following command:
echo cvs import src/external/gpl3/gcc/dist FSF gcc-X-Y-Z

exit 0
@


1.9
log
@normalize wording in import helpers
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.8 2020/06/02 08:03:59 mrg Exp $
d50 1
d53 1
d55 1
d64 1
d67 1
d72 1
d74 1
a74 1
libmudflap/testsuite
@


1.8
log
@don't elide fortran components.  we'd like to revive g77-as-gfortran.
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.7 2018/02/08 19:33:26 mrg Exp $
d29 1
a29 1
# gcc2netbsd:  convert a file source tree into a
@


1.8.8.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.9 2024/09/08 10:01:59 rillig Exp $
d29 1
a29 1
# gcc2netbsd:  convert a gcc source tree into a
@


1.7
log
@adjust the list of subdirs to elide.  don't need libitm, gnattools
or gotools.
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.6 2016/03/12 21:51:02 mrg Exp $
a49 1
gcc/fortran
a60 1
libgfortran
a68 1
libquadmath
@


1.6
log
@minor updates for GCC 5.
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.5 2014/02/23 05:46:28 mrg Exp $
d55 2
d66 1
a66 1
libitm/testsuite
@


1.5
log
@add */po and itm/testsuite.
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.4 2014/01/19 00:37:30 mrg Exp $
d57 1
d66 2
d72 1
@


1.5.8.1
log
@file gcc2netbsd was added on branch tls-maxphys on 2014-08-19 23:53:09 +0000
@
text
@d1 82
@


1.5.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 82
#! /bin/sh
#
#	$NetBSD$
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# gcc2netbsd:  convert a file source tree into a
# format suitable for import.  Works on first arg dir.
# You can run this only once if you want it to work.
#
# based on file 2netbsd
#
PROG="$(basename "$0")"

if [ -z "$1" ]
then
	echo "Usage: $PROG <directory>" 1>&2
	exit 1
fi
DIR="$1"

### Remove the $'s around RCS tags
cleantags "$DIR"

RM="
boehm-gc
gcc/ada
gcc/fortran
gcc/go
gcc/java
gcc/po
gcc/testsuite
libada
libatomic
libcpp/po
libffi
libgfortran
libgo
libgomp/testsuite
libiberty/testsuite
libitm/testsuite
libjava
libmudflap/testsuite
libquadmath
libstdc++-v3/po
libstdc++-v3/testsuite
zlib
"

find "$DIR" -name .cvsignore -exec rm -f {} +
find "$DIR" -name .gitignore -exec rm -f {} +
find "$DIR" -name .svn -type d -exec rm -fr {} +
for i in $RM; do
	rm -fr "$DIR/$i"
done

echo You can import now.  Use the following command:
echo cvs import src/external/gpl3/gcc/dist FSF gcc-X-Y-Z

exit 0
@


1.5.4.1
log
@file gcc2netbsd was added on branch yamt-pagecache on 2014-05-22 16:53:12 +0000
@
text
@d1 82
@


1.5.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 82
#! /bin/sh
#
#	$NetBSD$
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# gcc2netbsd:  convert a file source tree into a
# format suitable for import.  Works on first arg dir.
# You can run this only once if you want it to work.
#
# based on file 2netbsd
#
PROG="$(basename "$0")"

if [ -z "$1" ]
then
	echo "Usage: $PROG <directory>" 1>&2
	exit 1
fi
DIR="$1"

### Remove the $'s around RCS tags
cleantags "$DIR"

RM="
boehm-gc
gcc/ada
gcc/fortran
gcc/go
gcc/java
gcc/po
gcc/testsuite
libada
libatomic
libcpp/po
libffi
libgfortran
libgo
libgomp/testsuite
libiberty/testsuite
libitm/testsuite
libjava
libmudflap/testsuite
libquadmath
libstdc++-v3/po
libstdc++-v3/testsuite
zlib
"

find "$DIR" -name .cvsignore -exec rm -f {} +
find "$DIR" -name .gitignore -exec rm -f {} +
find "$DIR" -name .svn -type d -exec rm -fr {} +
for i in $RM; do
	rm -fr "$DIR/$i"
done

echo You can import now.  Use the following command:
echo cvs import src/external/gpl3/gcc/dist FSF gcc-X-Y-Z

exit 0
@


1.4
log
@delete .svn subdirs as part of the pre-import.
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.3 2013/12/13 10:01:49 mrg Exp $
d53 1
d57 1
d63 1
d67 1
@


1.3
log
@update to reality for gcc 4.8.2.
@
text
@d3 1
a3 1
#	$NetBSD: gcc2netbsd,v 1.2 2013/10/05 18:38:03 christos Exp $
d42 1
a42 1
FILE="$1"
d45 1
a45 1
cleantags "$FILE"
d68 3
a70 2
find "$FILE" -name .cvsignore -exec rm -f {} +
find "$FILE" -name .gitignore -exec rm -f {} +
d72 1
a72 1
	rm -fr "$FILE/$i"
@


1.2
log
@dollarize NetBSD tag
@
text
@d3 1
a3 1
#	$NetBSD: gdb2netbsd,v 1.2 2011/10/08 19:28:40 christos Exp $
d30 1
a30 1
# format suitable for import.  Works on current dir.
d48 1
a48 1
gcc/java
d51 5
a55 3
gcc/testsuite/ada
gcc/testsuite/gfortran.dg
gcc/testsuite/gfortran.fortran-torture
d57 8
a65 4
boehm-gc
libjava
libada
libgfortran
@


1.1
log
@mother's little helper.
@
text
@d3 1
a3 1
#	NetBSD: gdb2netbsd,v 1.2 2011/10/08 19:28:40 christos Exp 
@

