|
|
1.1 ! root 1: #!/bin/sh - ! 2: ! 3: ## ! 4: # Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 5: # ! 6: # @APPLE_LICENSE_HEADER_START@ ! 7: # ! 8: # Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 9: # Reserved. This file contains Original Code and/or Modifications of ! 10: # Original Code as defined in and that are subject to the Apple Public ! 11: # Source License Version 1.1 (the "License"). You may not use this file ! 12: # except in compliance with the License. Please obtain a copy of the ! 13: # License at http://www.apple.com/publicsource and read it before using ! 14: # this file. ! 15: # ! 16: # The Original Code and all software distributed under the License are ! 17: # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 18: # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 19: # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 20: # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 21: # License for the specific language governing rights and limitations ! 22: # under the License. ! 23: # ! 24: # @APPLE_LICENSE_HEADER_END@ ! 25: ## ! 26: ! 27: # ! 28: # Mach Operating System ! 29: # Copyright (c) 1990 Carnegie-Mellon University ! 30: # Copyright (c) 1989 Carnegie-Mellon University ! 31: # All rights reserved. The CMU software License Agreement specifies ! 32: # the terms and conditions for use and redistribution. ! 33: # ! 34: ! 35: # ! 36: # newvers.sh copyright major minor variant edit patch ! 37: # ! 38: ! 39: major="$1"; minor="$2"; variant="$3" ! 40: v="${major}.${minor}" d=`pwd` h="rcbuilder" t=`date` w=`whoami` ! 41: if [ -z "$d" -o -z "$h" -o -z "$t" ]; then ! 42: exit 1 ! 43: fi ! 44: CONFIG=`expr "$d" : '.*/\([^/]*\)$'` ! 45: d=`expr "$d" : '.*/\([^/]*/[^/]*/[^/]*\)$'` ! 46: ( ! 47: /bin/echo "int version_major = ${major};" ; ! 48: /bin/echo "int version_minor = ${minor};" ; ! 49: /bin/echo "char version_variant[] = \"${variant}\";" ; ! 50: /bin/echo "char version[] = \"Kernel Release ${v}:\\n${t}; $w($h):$d\\nCopyright (c) 1988-1995,1997-1999 Apple Computer, Inc. All Rights Reserved.\\n\\n\";" ; ! 51: /bin/echo "char osrelease[] = \"${major}.${minor}\";" ; ! 52: /bin/echo "char ostype[] = \"Rhapsody\";" ; ! 53: ) > vers.c ! 54: if [ -s vers.suffix -o ! -f vers.suffix ]; then ! 55: rm -f vers.suffix ! 56: echo ".${variant}.${CONFIG}" > vers.suffix ! 57: fi ! 58: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.