[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.108 and 1.109

version 1.108, 2004/09/14 15:19:35 version 1.109, 2005/03/27 23:27:31
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" '
 AWK=${AWK:-awk}  /^#define[      ]*__NetBSD_Version__/ {
 GREP=${GREP:-grep}          major = ($3 / 100000000);
 PARAMH="`dirname $0`"/../sys/param.h          minor = ($3 / 1000000) % 100;
 release=`$AWK '/^#define[       ]*__NetBSD_Version__/ { print $6 }' $PARAMH`          patch = ($3 / 100) % 100;
           printf((FLAG == "-s") ? "%d%d%d\n" : "%d.%d.%d\n", major, minor, patch);
 case $1 in  }' "$(dirname $0)"/../sys/param.h
 -s)  
         echo $release | sed -e 's,\.,,g'  
         ;;  
 *)  
         echo $release  
         ;;  
 esac  

Legend:
Removed from v.1.108  
changed lines
  Added in v.1.109

CVSweb <webmaster@jp.NetBSD.org>