2000-03-29 16:38:44 +04:00
|
|
|
#!@PATH_SH@
|
|
|
|
PROG=${1-UNKNOWN}
|
|
|
|
|
|
|
|
ConfStr="$PROG"
|
|
|
|
|
|
|
|
ConfStr="$ConfStr @VERSION@"
|
|
|
|
|
2003-12-04 19:05:14 +03:00
|
|
|
case "$CSET" in
|
2000-03-29 16:38:44 +04:00
|
|
|
'') ;;
|
2003-12-04 19:05:14 +03:00
|
|
|
*) ConfStr="$ConfStr@$CSET" ;;
|
|
|
|
esac
|
|
|
|
|
2006-06-11 18:57:12 +04:00
|
|
|
case "@LCRYPTO@" in
|
|
|
|
'') ;;
|
|
|
|
-lcrypto)
|
|
|
|
ConfStr="${ConfStr}-o" ;;
|
|
|
|
*) ConfStr="${ConfStr}-?" ;;
|
2000-03-29 16:38:44 +04:00
|
|
|
esac
|
|
|
|
|
2006-06-11 18:57:12 +04:00
|
|
|
ConfStr="$ConfStr `LC_TIME=C TZ= date`"
|
2000-03-29 16:38:44 +04:00
|
|
|
|
|
|
|
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-
|