mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
32 lines
466 B
Plaintext
32 lines
466 B
Plaintext
#!@PATH_SH@
|
|
PROG=${1-UNKNOWN}
|
|
|
|
ConfStr="$PROG"
|
|
|
|
case "@LIBRSAREF@" in
|
|
'') ;;
|
|
*) ConfStr="$ConfStr RSAREF" ;;
|
|
esac
|
|
|
|
ConfStr="$ConfStr @VERSION@ `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-
|