From 6285ef062c9f09e50690338cd285cf566fd9a725 Mon Sep 17 00:00:00 2001 From: dsl Date: Thu, 15 May 2003 10:11:01 +0000 Subject: [PATCH] Use echo instead of cat to add prologue to builtins.[ch] Under some circumstances the headers got overwritten. --- bin/sh/mkbuiltins | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins index 61500c6a2afa..1a71b29997fd 100644 --- a/bin/sh/mkbuiltins +++ b/bin/sh/mkbuiltins @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: mkbuiltins,v 1.18 2003/02/02 21:10:45 dsl Exp $ +# $NetBSD: mkbuiltins,v 1.19 2003/05/15 10:11:01 dsl Exp $ # # Copyright (c) 1991, 1993 # The Regents of the University of California. All rights reserved. @@ -55,8 +55,7 @@ fi exec <$builtins 3> ${objdir}/builtins.c 4> ${objdir}/builtins.h -cat <&3 -/* +echo '/* * This file was generated by the mkbuiltins program. */ @@ -64,10 +63,9 @@ cat <&3 #include "builtins.h" const struct builtincmd builtincmd[] = { -EOF +' >&3 -cat <&4 -/* +echo '/* * This file was generated by the mkbuiltins program. */ @@ -81,7 +79,7 @@ struct builtincmd { extern const struct builtincmd builtincmd[]; extern const struct builtincmd splbltincmd[]; -EOF +' >&4 specials=