File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / scripts / mkver.in
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 7 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    1: #!@PATH_SH@
    2: PROG=${1-UNKNOWN}
    3: 
    4: ConfStr="$PROG"
    5: 
    6: ConfStr="$ConfStr @VERSION@"
    7: 
    8: case "$CSET" in
    9:  '') ;;
   10:  *) ConfStr="$ConfStr@$CSET" ;;
   11: esac
   12: 
   13: case "@LCRYPTO@" in
   14:  '') ;;
   15:  -lcrypto)
   16:     ConfStr="${ConfStr}-o" ;;
   17:  *) ConfStr="${ConfStr}-?" ;;
   18: esac
   19: 
   20: ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
   21: 
   22: if [ ! -f .version ]; then
   23:   echo 0 > .version
   24: fi
   25: RUN="`cat .version`"
   26: RUN="`expr $RUN + 1`"
   27: echo $RUN > .version
   28: 
   29: ConfStr="$ConfStr (${RUN})"
   30: 
   31: echo "Version <${ConfStr}>";
   32: 
   33: rm -f version.c
   34: cat > version.c << -EoF-
   35: /*
   36:  * version file for $PROG
   37:  */
   38: #include <config.h>
   39: const char * Version = "${ConfStr}";
   40: -EoF-

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>