newvers.sh (1549) | newvers.sh (1817) |
---|---|
1#!/bin/sh - 2# 3# Copyright (c) 1984, 1986, 1990, 1993 4# The Regents of the University of California. All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 18 unchanged lines hidden (view full) --- 27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32# SUCH DAMAGE. 33# 34# @(#)newvers.sh 8.1 (Berkeley) 4/20/94 | 1#!/bin/sh - 2# 3# Copyright (c) 1984, 1986, 1990, 1993 4# The Regents of the University of California. All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 18 unchanged lines hidden (view full) --- 27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32# SUCH DAMAGE. 33# 34# @(#)newvers.sh 8.1 (Berkeley) 4/20/94 |
35# $Id$ |
|
35 36if [ ! -r version ] 37then 38 echo 0 > version 39fi 40 41touch version 42v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` 43echo "char ostype[] = \"FreeBSD\";" > vers.c 44echo "char osrelease[] = \"2.0.0 (Development)\";" >> vers.c 45echo "char sccs[4] = { '@', '(', '#', ')' };" >>vers.c 46echo "char version[] = \"FreeBSD 2.0.0 (Development) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" >>vers.c 47 48echo `expr ${v} + 1` > version | 36 37if [ ! -r version ] 38then 39 echo 0 > version 40fi 41 42touch version 43v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` 44echo "char ostype[] = \"FreeBSD\";" > vers.c 45echo "char osrelease[] = \"2.0.0 (Development)\";" >> vers.c 46echo "char sccs[4] = { '@', '(', '#', ')' };" >>vers.c 47echo "char version[] = \"FreeBSD 2.0.0 (Development) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" >>vers.c 48 49echo `expr ${v} + 1` > version |