packages/awk_procedure
author Jay Cotton <Jay.Cotton@Sun.COM>
Thu, 24 Jul 2008 13:07:37 -0700
changeset 472 c6afe0d6b651
parent 244 6e6c16040af9
child 907 3c35d611cdaa
permissions -rw-r--r--
6727043 Move winsysck to open source tree
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
244
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###########################################################################
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# Permission is hereby granted, free of charge, to any person obtaining a
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# copy of this software and associated documentation files (the
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# "Software"), to deal in the Software without restriction, including
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# without limitation the rights to use, copy, modify, merge, publish,
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# distribute, and/or sell copies of the Software, and to permit persons
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# to whom the Software is furnished to do so, provided that the above
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# copyright notice(s) and this permission notice appear in all copies of
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# the Software and that both the above copyright notice(s) and this
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# permission notice appear in supporting documentation.
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# Except as contained in this notice, the name of a copyright holder
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# shall not be used in advertising or otherwise to promote the sale, use
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# or other dealings in this Software without prior written authorization
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# of the copyright holder.
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
###########################################################################
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
# ident	"@(#)awk_procedure	1.3	07/11/05 SMI"
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
#
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
BEGIN	{
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
	SOURCEDIR = ENVIRON [ "SOURCEDIR" ];
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
	if ( SOURCEDIR == "" ) SOURCEDIR = ".."
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
	}
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
/^include / {
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    40
	system("cat " SOURCEDIR "/common_files/proc." $2)
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
	next
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
}
6e6c16040af9 Open source most of the remaining X package definitions
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
{ print }