mkver (7847e04111f2c2b06b36f6d19a46d78814d7836d) | mkver (5bff36fe81291488a7f019dd26dd4d3591cdfd22) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 4# 5PROG=${1-UNKNOWN} 6 | 1#!/bin/sh 2# 3# $FreeBSD$ 4# 5PROG=${1-UNKNOWN} 6 |
7: ${ECHO:=echo} 8 |
|
7ConfStr="$PROG" 8 9ConfStr="$ConfStr 4.2.8p12" 10 11case "$CSET" in 12 '') ;; 13 *) ConfStr="$ConfStr@$CSET" ;; 14esac --- 12 unchanged lines hidden (view full) --- 27 echo 0 > .version 28fi 29RUN="`cat .version`" 30RUN="`expr $RUN + 1`" 31echo $RUN > .version 32 33ConfStr="$ConfStr (${RUN})" 34 | 9ConfStr="$PROG" 10 11ConfStr="$ConfStr 4.2.8p12" 12 13case "$CSET" in 14 '') ;; 15 *) ConfStr="$ConfStr@$CSET" ;; 16esac --- 12 unchanged lines hidden (view full) --- 29 echo 0 > .version 30fi 31RUN="`cat .version`" 32RUN="`expr $RUN + 1`" 33echo $RUN > .version 34 35ConfStr="$ConfStr (${RUN})" 36 |
35echo "Version <${ConfStr}>"; | 37${ECHO} "Version <${ConfStr}>"; |
36 37rm -f version.c 38cat > version.c << -EoF- 39/* 40 * version file for $PROG 41 */ 42#include <config.h> 43const char * Version = "${ConfStr}"; 44-EoF- | 38 39rm -f version.c 40cat > version.c << -EoF- 41/* 42 * version file for $PROG 43 */ 44#include <config.h> 45const char * Version = "${ConfStr}"; 46-EoF- |