1#!@PATH_SH@ 2PROG=${1-UNKNOWN} 3 4ConfStr="$PROG" 5 6ConfStr="$ConfStr @VERSION@" 7 8case "$CSET" in 9 '') ;; 10 *) ConfStr="$ConfStr@$CSET" ;; 11esac 12 13case "@LCRYPTO@" in 14 '') ;; 15 -lcrypto) 16 ConfStr="${ConfStr}-o" ;; 17 *) ConfStr="${ConfStr}-?" ;; 18esac 19 20ConfStr="$ConfStr `LC_TIME=C TZ= date`" 21 22if [ ! -f .version ]; then 23 echo 0 > .version 24fi 25RUN="`cat .version`" 26RUN="`expr $RUN + 1`" 27echo $RUN > .version 28 29ConfStr="$ConfStr (${RUN})" 30 31echo "Version <${ConfStr}>"; 32 33rm -f version.c 34cat > version.c << -EoF- 35/* 36 * version file for $PROG 37 */ 38#include <config.h> 39const char * Version = "${ConfStr}"; 40-EoF- 41