Strip NetBSD version numbers from target triplets in all generated files.
This commit is contained in:
parent
daaabffb64
commit
2634f75160
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $NetBSD: toolchain2netbsd,v 1.10 2001/08/14 04:59:32 tv Exp $
|
||||
# $NetBSD: toolchain2netbsd,v 1.11 2001/08/14 05:11:50 tv Exp $
|
||||
#
|
||||
# Shell script for generating all the constants needed for a native
|
||||
# platform build of src/gnu/dist/toolchain.
|
||||
@ -39,7 +39,7 @@ write_mk () {
|
||||
}
|
||||
|
||||
writefile () {
|
||||
cat >>$1.tmp
|
||||
sed 's,netbsd\(elf\)*[0-9\.]*,netbsd\1,' >>$1.tmp
|
||||
# will not overwrite a file that has the same content
|
||||
if cmp $1.tmp $1 >/dev/null 2>&1; then
|
||||
echo >&2 "$1 is unchanged"
|
||||
@ -277,9 +277,7 @@ cat $_TMPDIR/gdb/config.h $_TMPDIR/readline/config.h \
|
||||
| write_c usr.bin/gdb/arch/$MACHINE_ARCH/config.h
|
||||
|
||||
write_c usr.bin/gdb/arch/$MACHINE_ARCH/init.c <$_TMPDIR/gdb/init.c
|
||||
|
||||
sed '/netbsd/s,[\._0-9A-Z]*";$,";,' <$_TMPDIR/gdb/version.c \
|
||||
| write_c usr.bin/gdb/arch/$MACHINE_ARCH/version.c
|
||||
write_c usr.bin/gdb/arch/$MACHINE_ARCH/version.c <$_TMPDIR/gdb/version.c
|
||||
|
||||
for f in nm tm xm; do
|
||||
ls -l $_TMPDIR/gdb/$f.h | sed 's,^.*->.*/gdb/config/,,;s,^,#include <,;s,$,>,' \
|
||||
|
Loading…
Reference in New Issue
Block a user