config root man

Current Path : /usr/src/contrib/ntp/scripts/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/contrib/ntp/scripts/mkver.in

#!@PATH_SH@
PROG=${1-UNKNOWN}

ConfStr="$PROG"

ConfStr="$ConfStr @VERSION@"

case "$CSET" in
 '') ;;
 *) ConfStr="$ConfStr@$CSET" ;;
esac

case "@LCRYPTO@" in
 '') ;;
 -lcrypto)
    ConfStr="${ConfStr}-o" ;;
 *) ConfStr="${ConfStr}-?" ;;
esac

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-

Man Man