Current Path : /usr/src/usr.sbin/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 |
Current File : //usr/src/usr.sbin/ntp/scripts/mkver |
#!/bin/sh # # $FreeBSD: release/9.1.0/usr.sbin/ntp/scripts/mkver 196128 2009-08-12 11:55:26Z cperciva $ # PROG=${1-UNKNOWN} ConfStr="$PROG" ConfStr="$ConfStr 4.2.4p5" case "$CSET" in '') ;; *) ConfStr="$ConfStr@$CSET" ;; esac case "" in '') case "1" in '') ;; *) ConfStr="${ConfStr}-a" ;; esac ;; *) ConfStr="${ConfStr}-r" ;; 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-