freebsd-skq/usr.sbin/ntp/scripts/mkver
roberto 2807ab4d9f Update to 4.0.99b. According to Harlan Stenn, the things holding the
release of 4.1.0 are not FreeBSD-related so importing this one is
not a problem.
2000-01-28 15:05:59 +00:00

33 lines
463 B
Bash
Executable File

#!/bin/sh
# $FreeBSD$
PROG=${1-UNKNOWN}
ConfStr="$PROG"
case "" in
'') ;;
*) ConfStr="$ConfStr RSAREF" ;;
esac
ConfStr="$ConfStr 4.0.99b `date`"
if [ ! -f .version ]; then
echo 0 > .version
fi
RUN="`cat .version`"
RUN="`expr $RUN + 1`"
echo $RUN > .version
ConfStr="$ConfStr (${RUN})"
echo "Version <${ConfStr}>";
rm -f version.c
cat > version.c << -EoF-
/*
* version file for $PROG
*/
#include <config.h>
const char * Version = "${ConfStr}";
-EoF-