diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-05-04 20:31:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-05-04 20:31:42 +0000 |
commit | 4e9a6092ee487ac85b4cb7380d1af800d2864747 (patch) | |
tree | b970b250576b4015eb602afb5d4ff824a70bc41e | |
parent | 5698c849c650aecbae106b7d3ec7a0390bdc08e1 (diff) |
Remove unnecesary call to head(1) that was giving me some grief.
It is sufficient to have awk exit after printing the first line.
-rw-r--r-- | sys/arch/alpha/stand/boot/newvers.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/stand/boot/newvers.sh b/sys/arch/alpha/stand/boot/newvers.sh index 605d7141d93..606b4031760 100644 --- a/sys/arch/alpha/stand/boot/newvers.sh +++ b/sys/arch/alpha/stand/boot/newvers.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: newvers.sh,v 1.5 1996/10/30 22:40:44 niklas Exp $ +# $OpenBSD: newvers.sh,v 1.6 1997/05/04 20:31:41 millert Exp $ # $NetBSD: newvers.sh,v 1.3 1996/06/14 20:03:04 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 Secondary Boot\";" > vers.c echo "char bootprog_rev[] = \"${r}\";" >> vers.c |