[BACK]Return to osrelease.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / conf

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/conf/osrelease.sh between version 1.110 and 1.111

version 1.110, 2005/12/11 12:20:30 version 1.111, 2006/08/08 07:05:40
Line 38 
Line 38 
 #  #
   
 # We use the number specified in <sys/param.h>  # We use the number specified in <sys/param.h>
 ${AWK:-awk} -v FLAG="$1" '  
 /^#define[      ]*__NetBSD_Version__/ {  AWK=${AWK:-awk}
         major = ($3 / 100000000);  GREP=${GREP:-grep}
         minor = ($3 / 1000000) % 100;  PARAMH="`dirname $0`"/../sys/param.h
         patch = ($3 / 100) % 100;  release=`$AWK '/^#define[       ]*__NetBSD_Version__/ { print $6 }' $PARAMH`
         printf((FLAG == "-s") ? "%d%d%d\n" : "%d.%d.%d\n", major, minor, patch);  
 }' "$(dirname $0)"/../sys/param.h  case $1 in
   -s)
           echo $release | sed -e 's,\.,,g'
           ;;
   *)
           echo $release
           ;;
   esac

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

CVSweb <webmaster@jp.NetBSD.org>