# SUCH DAMAGE.
#
# from: @(#)newvers.sh 8.1 (Berkeley) 6/6/93
-# $Id: newvers.sh,v 1.2 1996/10/26 20:10:22 millert Exp $
+# $Id: newvers.sh,v 1.3 1997/02/23 03:41:56 deraadt Exp $
#
PATH=/usr/ucb:/bin:/usr/bin:$PATH
if [ $# -ne 3 ]; then echo "Usage: newvers program arch os" >&2; exit 1; fi
version="version.$1"
if [ ! -r $version ]; then echo 0 > $version; chmod 444 $version; fi
v=`cat $version`
-u=${LOGNAME-${USER-root}}
-h=`hostname`
-#h=`expr "$h" : '\([^.]*\)'`
t=`date`
if [ ! -s "$d../config/RELEASE" -o ! -s "$d../text/COPYRIGHT" ]; then
echo ERROR: config file missing >&2
$d../config/RELEASE
cat << %%
#${v}: ${t}\\n\\
-Built by ${u}@${h} for \\
%%
case "$2" in
[aeiou]*) echo "an \\" ;;