From 3c10c9e4611177d958191b510e027f1e430c6640 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 4 May 1997 23:40:30 +0000 Subject: Don't use head when we already use awk. --- sys/arch/alpha/stand/netboot/newvers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/alpha') diff --git a/sys/arch/alpha/stand/netboot/newvers.sh b/sys/arch/alpha/stand/netboot/newvers.sh index 9699e4f9ee7..bb3e3c51692 100644 --- a/sys/arch/alpha/stand/netboot/newvers.sh +++ b/sys/arch/alpha/stand/netboot/newvers.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: newvers.sh,v 1.1 1996/10/30 22:40:58 niklas Exp $ +# $OpenBSD: newvers.sh,v 1.2 1997/05/04 23:40:29 millert Exp $ # $NetBSD: newvers.sh,v 1.1 1996/09/18 20:03:13 cgd Exp $ # # Copyright (c) 1984, 1986, 1990, 1993 @@ -37,7 +37,7 @@ # @(#)newvers.sh 8.1 (Berkeley) 4/20/94 u=${USER-root} h=`hostname` t=`date` -r=`head -1 $1 | awk ' { print $3 } '` +r=`awk ' { print $3 ; exit } ' < $1` echo "char bootprog_name[] = \"OpenBSD/Alpha Network Boot\";" > vers.c echo "char bootprog_rev[] = \"${r}\";" >> vers.c -- cgit v1.2.3