head	1.4;
access;
symbols
	RELENG_3_5_0_RELEASE:1.3
	RELENG_3_4_0_RELEASE:1.3
	RELENG_3_3_0_RELEASE:1.3
	RELENG_3_2_PAO:1.3.0.4
	RELENG_3_2_PAO_BP:1.3
	RELENG_3_2_0_RELEASE:1.3
	RELENG_3_1_0_RELEASE:1.3
	RELENG_3:1.3.0.2
	RELENG_3_BP:1.3
	RELENG_2_2_8_RELEASE:1.2
	RELENG_3_0_0_RELEASE:1.3
	RELENG_2_2_7_RELEASE:1.2
	RELENG_2_2_6_RELEASE:1.2
	RELENG_2_2_5_RELEASE:1.2
	RELENG_2_2_2_RELEASE:1.2
	RELENG_2_2_1_RELEASE:1.2
	RELENG_2_2_0_RELEASE:1.2
	RELENG_2_1_7_RELEASE:1.2
	RELENG_2_1_6_1_RELEASE:1.2
	RELENG_2_1_6_RELEASE:1.2
	RELENG_2_2:1.2.0.10
	RELENG_2_2_BP:1.2
	RELENG_2_1_5_RELEASE:1.2
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.8
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.6
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.4
	xntp_3_4e:1.1.1.2
	MOVED_NEWCVS:1.2
	FINAL_1_1_5:1.2
	ALPHA_1_1_5:1.2
	FINAL_1_1:1.2
	GAMMA_1_1:1.2
	xntp_3_3s:1.1.1.2
	udel_3_3p:1.1.1.1
	udel:1.1.1
	BETA_1_1:1.2.0.2
	BP_BETA_1_1:1.2
	UDEL_33Z:1.1.1.1
	UDEL_33B:1.1.1.1
	UDEL:1.1.1;
locks; strict;
comment	@# @;


1.4
date	99.12.22.15.23.54;	author roberto;	state dead;
branches;
next	1.3;

1.3
date	97.06.30.10.59.25;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	94.02.06.06.58.59;	author wollman;	state Exp;
branches;
next	1.1;

1.1
date	93.12.21.18.36.35;	author wollman;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	93.12.21.18.36.36;	author wollman;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.04.21.00.31.35;	author wollman;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Bye bye xntpd.
@
text
@#!/bin/sh -
PROG=${1-UNKNOWN}
if [ ! -f .version ]; then
  echo 0 > .version
fi

RUN="`cat .version`"
RUN="`expr $RUN + 1`"
echo $RUN > .version

DATE="`LC_TIME=C date`"
TOPDIR=`echo $0 | sed -e 's;mkversion;..;'`

if [ -r VERSION ]; then
  VERSION=VERSION
else if [ -r ${TOPDIR}/VERSION ]; then
  VERSION=${TOPDIR}/VERSION
else
  VERSION=../VERSION
fi; fi

if [ -f "$VERSION" ]; then
  FLAGS="`egrep '^[0-9a-zA-Z_]+=' "$VERSION" | tr '\012' ';'` "
else
  FLAGS=""
fi

echo "Version $PROG ${FLAGS}${DATE} (${RUN})";

rm -f version.c
cat > version.c << -EoF-
/*
 * version file for $PROG
 */
char * Version = "$PROG ${FLAGS}${DATE} (${RUN})";
-EoF-
@


1.3
log
@Add LC_TIME=C to date
@
text
@@


1.2
log
@Fix mkversion script so that it finds the top-level VERSION file
when obj directories are in use.
@
text
@d11 1
a11 1
DATE="`date`"
@


1.1
log
@Initial revision
@
text
@d12 1
d16 2
d20 1
a20 1
fi
@


1.1.1.1
log
@xntpd 3.3b from UDel
@
text
@@


1.1.1.2
log
@xntp3.3s from UDel
@
text
@a11 1
TOPDIR=`echo $0 | sed -e 's;mkversion;..;'`
a14 2
else if [ -r ${TOPDIR}/VERSION ]; then
  VERSION=${TOPDIR}/VERSION
d17 1
a17 1
fi; fi
@
