mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
afcf05e46a
LC_ALL takes precedence over other LC_* envariables.
33 lines
472 B
Bash
Executable File
33 lines
472 B
Bash
Executable File
#!/bin/sh
|
|
# $FreeBSD$
|
|
PROG=${1-UNKNOWN}
|
|
|
|
ConfStr="$PROG"
|
|
|
|
case "" in
|
|
'') ;;
|
|
*) ConfStr="$ConfStr RSAREF" ;;
|
|
esac
|
|
|
|
ConfStr="$ConfStr 4.0.99b `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-
|