The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/SETUP/newvers

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/bin/sh -
    2 #
    3 # Mach Operating System
    4 # Copyright (c) 1990 Carnegie-Mellon University
    5 # Copyright (c) 1989 Carnegie-Mellon University
    6 # All rights reserved.  The CMU software License Agreement specifies
    7 # the terms and conditions for use and redistribution.
    8 #
    9 
   10 #
   11 # newvers.sh    copyright major minor variant
   12 #
   13 
   14 major="$1"; minor="$2"; variant="$3"
   15 v="${major}.${minor}" d=`pwd` h="rcbuilder" t=`date` w=`whoami`
   16 if [ -z "$d" -o -z "$h" -o -z "$t" ]; then
   17     exit 1
   18 fi
   19 CONFIG=`expr "$d" : '.*/\([^/]*\)$'`
   20 d=`expr "$d" : '.*/\([^/]*/[^/]*/[^/]*\)$'`
   21 (
   22   /bin/echo "int  ${COMPONENT}_version_major      = ${major};" ;
   23   /bin/echo "int  ${COMPONENT}_version_minor      = ${minor};" ;
   24   /bin/echo "char ${COMPONENT}_version_variant[]  = \"${variant}\";" ;
   25   /bin/echo "char ${COMPONENT}_version[] = \"Security Component Version ${v}:\\n${t}; $w($h):$d\\n\";" ;
   26   /bin/echo "char ${COMPONENT}_osrelease[] = \"${major}.${minor}\";" ;
   27   /bin/echo "char ${COMPONENT}_ostype[] = \"Security Modules\";" ;
   28 ) > vers.c
   29 if [ -s vers.suffix -o ! -f vers.suffix ]; then
   30     rm -f vers.suffix
   31     echo ".${variant}.${CONFIG}" > vers.suffix
   32 fi
   33 exit 0

Cache object: 304f846b2625a8f95496b29906a6aba5


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.