6cb84f0c29
This bring us several things: - updated drivers - IPv6 support at last - ntp-genkeys is replaced by ntp-keygen - ntptrace is now a script (courtesy of John Hay) - lots of renamed files from .htm to .html (while I prefer .html, I find the change a bit gratuitous) - still no manpages :( Please test and report. Commit very much helped by: GNU arch (http://gnuarch.org/)
47 lines
628 B
Bash
Executable File
47 lines
628 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
PROG=${1-UNKNOWN}
|
|
|
|
ConfStr="$PROG"
|
|
|
|
ConfStr="$ConfStr 4.2.0"
|
|
|
|
case "$CSET" in
|
|
'') ;;
|
|
*) ConfStr="$ConfStr@$CSET" ;;
|
|
esac
|
|
|
|
case "" in
|
|
'')
|
|
case "1" in
|
|
'') ;;
|
|
*) ConfStr="${ConfStr}-a" ;;
|
|
esac
|
|
;;
|
|
*) ConfStr="${ConfStr}-r" ;;
|
|
esac
|
|
|
|
ConfStr="$ConfStr `LC_ALL=C 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-
|