Deleted Added
full compact
newvers.sh (1817) newvers.sh (2004)
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# $Id: newvers.sh,v 1.3 1994/08/02 07:38:27 davidg Exp $
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
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 "int osreldate = 199409;" >> 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
47echo "char sccs[4] = { '@', '(', '#', ')' };" >>vers.c
48echo "char version[] = \"FreeBSD 2.0.0 (Development) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" >>vers.c
49
50echo `expr ${v} + 1` > version