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