1#!/bin/sh 2# $FreeBSD$ 3PROG=${1-UNKNOWN} 4 5ConfStr="$PROG" 6 7case "" in 8 '') ;; 9 *) ConfStr="$ConfStr RSAREF" ;; 10esac 11 12ConfStr="$ConfStr 4.0.99b `LC_ALL=C date`" 13 14if [ ! -f .version ]; then 15 echo 0 > .version 16fi 17RUN="`cat .version`" 18RUN="`expr $RUN + 1`" 19echo $RUN > .version 20 21ConfStr="$ConfStr (${RUN})" 22 23echo "Version <${ConfStr}>"; 24 25rm -f version.c 26cat > version.c << -EoF- 27/* 28 * version file for $PROG 29 */ 30#include <config.h> 31const char * Version = "${ConfStr}"; 32-EoF- 33