freebsd-nq/contrib/ntp/scripts/mkver.in
1999-12-09 13:01:21 +00:00

32 lines
466 B
Plaintext

#!@PATH_SH@
PROG=${1-UNKNOWN}
ConfStr="$PROG"
case "@LIBRSAREF@" in
'') ;;
*) ConfStr="$ConfStr RSAREF" ;;
esac
ConfStr="$ConfStr @VERSION@ `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-