update mkver

This commit is contained in:
christos 2013-12-28 03:36:15 +00:00
parent 3683443505
commit 2073dae78f
1 changed files with 11 additions and 19 deletions

View File

@ -3,36 +3,28 @@ PROG=${1-UNKNOWN}
ConfStr="$PROG"
ConfStr="$ConfStr 4.2.6p5"
ConfStr="$ConfStr 4.2.7p404"
case "$CSET" in
'') ;;
*) ConfStr="$ConfStr@$CSET" ;;
esac
case "-lcrypto" in
case "o" in
'') ;;
-lcrypto)
ConfStr="${ConfStr}-o" ;;
*) ConfStr="${ConfStr}-?" ;;
*) ConfStr="${ConfStr}-o" ;;
esac
ifile="`dirname $0`/../importdate"
ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
if [ -f "$ifile" ]; then
ConfStr="$ConfStr "`cat "$ifile"`
else
ConfStr="$ConfStr `LC_TIME=C TZ= date`"
if [ ! -f .version ]; then
echo 0 > .version
fi
RUN="`cat .version`"
RUN="`expr $RUN + 1`"
echo $RUN > .version
ConfStr="$ConfStr (${RUN})"
if [ ! -f .version ]; then
echo 0 > .version
fi
RUN="`cat .version`"
RUN="`expr $RUN + 1`"
echo $RUN > .version
ConfStr="$ConfStr (${RUN})"
echo "Version <${ConfStr}>";