Initial revision. default tip
authorGuido Berhoerster <gber@openindiana.org>
Mon, 25 Oct 2010 22:04:53 +0200
changeset 0 10291c5dc856
Initial revision.
.pkgtoolrc
copyright/libevent14.copyright
copyright/mawk.copyright
copyright/tmux.copyright
docs/template.spec
include/Solaris.inc
include/arch64.inc
include/base.inc
include/default-depend.inc
include/desktop-database-install.script
include/desktop-database-uninstall.script
include/gconf-install.script
include/icon-cache.script
include/l10n.inc
include/oi-extra.inc
include/options.inc
include/prod-oie.inc
include/prod-oim.inc
include/prod.inc
include/scrollkeeper-update.script
include/usr-gnu.inc
include/x86_sse2.inc
patches/tmux-01-include-netdb.h.patch
scripts/copyright-extractor
specs/libevent14.spec
specs/tmux.spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.pkgtoolrc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,14 @@
+# tarballdirs [string]: colon (:) separated list of directories where source tarballs are searched for
+tarballdirs:	${tarballdirs}:/jds/packages/SOURCES
+
+# logdir [string]: the directory for saving log files
+# logdir:	/tmp
+
+# patchdirs [string]: colon (:) separated list of directories where source patches are searched for
+patchdirs:	${MYDIR}/patches
+
+# specdirs [string]: colon (:) separated list of directories where spec files are searched for
+specdirs:	${MYDIR}:${MYDIR}/include
+
+# sourcedirs [string]: colon (:) separated list of directories where extra sources (not tarballs) are searched for
+sourcedirs:	${MYDIR}/ext-sources:${MYDIR}/copyright
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/copyright/libevent14.copyright	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,74 @@
+Libevent is available for use under the following license, commonly known
+as the 3-clause (or "modified") BSD license:
+
+==============================
+Copyright (c) 2000-2007 Niels Provos <[email protected]>
+Copyright (c) 2007-2010 Niels Provos and Nick Mathewson
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+==============================
+
+Portions of Libevent are based on works by others, also made available by
+them under the three-clause BSD license above.  The copyright notices are
+available in the corresponding source files; the license is as above.  Here's
+a list:
+
+log.c:
+   Copyright (c) 2000 Dug Song <[email protected]>
+   Copyright (c) 1993 The Regents of the University of California.
+
+strlcpy.c:
+   Copyright (c) 1998 Todd C. Miller <[email protected]>
+
+win32select.c:
+   Copyright (c) 2003 Michael A. Davis <[email protected]>
+
+evport.c:
+   Copyright (c) 2007 Sun Microsystems
+
+ht-internal.h:
+   Copyright (c) 2002 Christopher Clark
+
+minheap-internal.h:
+   Copyright (c) 2006 Maxim Yegorushkin <[email protected]>
+
+==============================
+
+The arc4module is available under the following, sometimes called the
+"OpenBSD" license:
+
+   Copyright (c) 1996, David Mazieres <[email protected]>
+   Copyright (c) 2008, Damien Miller <[email protected]>
+
+   Permission to use, copy, modify, and distribute this software for any
+   purpose with or without fee is hereby granted, provided that the above
+   copyright notice and this permission notice appear in all copies.
+
+   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+   ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/copyright/mawk.copyright	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,2546 @@
+mawk-1.3.4-20100625/repl.h:
+*******************************************
+repl.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: repl.h,v 1.4 2009/07/27 21:47:40 tom Exp $
+ @Log: repl.h,v @
+ Revision 1.1.1.1  1993/07/03  18:58:19  mike
+ move source to cvs
+
+ Revision 5.1  1991/12/05  07:59:32  brennan
+ 1.1 pre-release
+
+ 
+
+ repl.h 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/memory.h:
+*******************************************
+memory.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: memory.h,v 1.7 2010/05/07 00:41:27 tom Exp $
+ @Log: memory.h,v @
+ Revision 1.1.1.1  1993/07/03  18:58:17  mike
+ move source to cvs
+
+ Revision 5.2  1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.1  1991/12/05  07:59:28  brennan
+ 1.1 pre-release
+
+ 
+
+  memory.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/matherr.c:
+*******************************************
+matherr.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: matherr.c,v 1.23 2010/02/21 15:37:21 tom Exp $
+
+ @Log: matherr.c,v @
+ Revision 1.9  1996/09/01 16:54:35  mike
+ Third try at bug fix for solaris strtod.
+
+ Revision 1.6  1994/12/18  20:53:43  mike
+ check NetBSD mathlib defines
+
+ Revision 1.5  1994/12/14  14:48:57  mike
+ add <siginfo.h> include -- sysV doesn't have it inside <signal.h>
+ restore #else that had been removed
+
+ Revision 1.4  1994/10/11  00:36:17  mike
+ systemVr4 siginfo
+
+ Revision 1.3  1993/07/17  13:23:04  mike
+ indent and general code cleanup
+
+ Revision 1.2	 1993/07/04  12:52:03  mike
+ start on autoconfig changes
+
+ Revision 5.2	 1992/03/31  16:14:44  brennan
+ patch2:
+ TURN_ON_FPE_TRAPS() macro
+ USE_IEEEFP_H macro
+
+ Revision 5.1	 91/12/05  07:56:18  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/re_cmpl.c:
+*******************************************
+re_cmpl.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: re_cmpl.c,v 1.10 2010/05/07 08:15:08 tom Exp $
+ @Log: re_cmpl.c,v @
+ Revision 1.6  1994/12/13  00:14:58  mike
+ \\ -> \ on second replacement scan
+
+ Revision 1.5  1994/10/08  19:15:51  mike
+ remove SM_DOS
+
+ Revision 1.4  1993/07/21  01:17:53  mike
+ handle "&" as replacement correctly
+
+ Revision 1.3  1993/07/17  13:23:10  mike
+ indent and general code cleanup
+
+ Revision 1.2  1993/07/15  23:38:23  mike
+ SIZE_T and indent
+
+ Revision 1.1.1.1  1993/07/03	 18:58:19  mike
+ move source to cvs
+
+ Revision 5.2	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.1	 1991/12/05  07:56:25  brennan
+ 1.1 pre-release
+
+
+
+  re_cmpl.c  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexp.c:
+*******************************************
+rexp.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexp.c,v 1.10 2009/09/13 22:43:29 tom Exp $
+ @Log: rexp.c,v @
+ Revision 1.3  1996/09/02 18:47:36  mike
+ Make ^* and ^+ syntax errors.
+
+ Revision 1.2  1993/07/23 13:21:32  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03	 18:58:26  mike
+ move source to cvs
+
+ Revision 3.4	 1991/08/13  09:09:59  brennan
+ VERSION .9994
+
+ Revision 3.3	 91/08/04  15:45:03  brennan
+ no longer attempt to recover mem on failed REcompile
+ Its not worth the effort
+
+ Revision 3.2	 91/08/03  07:24:06  brennan
+ check for empty machine stack (missing operand) wasn't quite right
+
+ Revision 3.1	 91/06/07  10:33:16  brennan
+ VERSION 0.995
+
+ Revision 1.7	 91/06/05  08:58:47  brennan
+ change RE_free to free
+
+ Revision 1.6	 91/06/03  07:07:17  brennan
+ moved parser stacks inside REcompile
+ removed unnecessary copying
+
+ 
+
+  op precedence  parser for regular expressions  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/scan.c:
+*******************************************
+scan.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: scan.c,v 1.22 2010/06/25 22:34:36 tom Exp $
+ @Log: scan.c,v @
+ Revision 1.8  1996/07/28 21:47:05  mike
+ gnuish patch
+
+ Revision 1.7  1995/06/18  19:42:24  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.6  1995/06/10  16:57:52  mike
+ silently exit(0) if no program
+ always add a '\n' on eof in scan_fillbuff()
+
+ Revision 1.5  1995/06/06  00:18:33  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.4  1994/09/23  00:20:04  mike
+ minor bug fix: handle \ in eat_nl()
+
+ Revision 1.3  1993/07/17  00:45:21  mike
+ indent
+
+ Revision 1.2	 1993/07/04  12:52:09  mike
+ start on autoconfig changes
+
+ Revision 1.1.1.1  1993/07/03	 18:58:20  mike
+ move source to cvs
+
+ Revision 5.6	 1993/02/13  21:57:33  mike
+ merge patch3
+
+ Revision 5.5	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.4.1.1  1993/01/15	 03:33:50  mike
+ patch3: safer double to int conversion
+
+ Revision 5.4	 1992/11/29  18:57:50  mike
+ field expressions convert to long so 16 bit and 32 bit
+ systems behave the same
+
+ Revision 5.3	 1992/07/08  15:43:41  brennan
+ patch2: length returns.  I am a wimp
+
+ Revision 5.2	 1992/02/21  14:16:53  brennan
+ fix:	 getline <=
+
+ Revision 5.1	 91/12/05  07:56:27  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexp3.c:
+*******************************************
+rexp3.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexp3.c,v 1.25 2010/05/07 22:09:39 tom Exp $
+ @Log: rexp3.c,v @
+ Revision 1.3  1993/07/24  17:55:15  mike
+ more cleanup
+
+ Revision 1.2	 1993/07/23  13:21:48  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03	 18:58:28  mike
+ move source to cvs
+
+ Revision 3.6	 1992/12/24  00:44:53  mike
+ fixed potential LMDOS bozo with M_STR+U_ON+END_ON
+ fixed minor bug in M_CLASS+U_ON+END_ON
+
+ Revision 3.5	 1992/01/21  17:33:20  brennan
+ added some casts so that character classes work with signed chars
+
+ Revision 3.4	 91/10/29  10:54:09  brennan
+ SIZE_T
+
+ Revision 3.3	 91/08/13  09:10:18  brennan
+ VERSION .9994
+
+ Revision 3.2	 91/06/10  16:18:17  brennan
+ changes for V7
+
+ Revision 3.1	 91/06/07  10:33:28  brennan
+ VERSION 0.995
+
+ Revision 1.4	 91/05/31  10:56:32  brennan
+ stack_empty hack for DOS large model
+
+
+
+  match a string against a machine   
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/files.c:
+*******************************************
+files.c
+copyright 1991-94.  Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: files.c,v 1.16 2010/06/25 21:56:01 tom Exp $
+
+ @Log: files.c,v @
+ Revision 1.9  1996/01/14  17:14:10  mike
+ flush_all_output()
+
+ Revision 1.8  1995/06/06  00:18:27  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.7  1994/12/11  20:48:50  mike
+ fflush builtin
+
+ Revision 1.6  1994/10/08  19:15:40  mike
+ remove SM_DOS
+
+ Revision 1.5  1994/04/17  20:01:37  mike
+ recognize filename "/dev/stdout"
+
+ Revision 1.4  1994/02/21  00:11:07  mike
+ code cleanup
+
+ Revision 1.3  1993/07/16  01:00:36  mike
+ cleanup and indent
+
+ Revision 5.5	 1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.4	 1992/07/10  16:10:30  brennan
+ patch2
+ MsDOS: remove useless NO_BINMODE macro
+ get process exit code on in pipes
+
+ Revision 5.3	 1992/04/07  20:21:17  brennan
+ patch 2
+ unbuffered output to a tty
+
+ Revision 5.2	 1992/04/07  16:03:08  brennan
+ patch 2
+ allow same filename for output and input, but use different descriptors
+ E.g. < "/dev/tty" and > "/dev/tty"
+
+ Revision 5.1	 91/12/05  07:56:00  brennan
+ 1.1 pre-release
+ 
+
+ files.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexp1.c:
+*******************************************
+rexp1.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexp1.c,v 1.12 2010/05/07 22:05:40 tom Exp $
+ @Log: rexp1.c,v @
+ Revision 1.3  1993/07/24  17:55:10  mike
+ more cleanup
+
+ Revision 1.2	 1993/07/23  13:21:41  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03	 18:58:27  mike
+ move source to cvs
+
+ Revision 3.4	 1992/02/20  16:08:12  brennan
+ change new_TWO() to work around sun acc bug
+
+ Revision 3.3	 91/10/29  10:54:01  brennan
+ SIZE_T
+
+ Revision 3.2	 91/08/13  09:10:11  brennan
+ VERSION .9994
+
+ Revision 3.1	 91/06/07  10:33:22  brennan
+ VERSION 0.995
+
+ 
+
+  re machine	operations  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/msdos/ztc.h:
+*******************************************
+ztc.h
+copyright 1992-4, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+ Zortech C++ under MSDOS 
+
+ @Log: ztc.h,v @
+ Revision 1.3  1994/10/08  19:12:08  mike
+ SET_PROGNAME
+
+ Revision 1.2  1994/10/08  18:49:30  mike
+ add MAX__INT etc
+
+ Revision 1.1  1994/10/08  18:24:43  mike
+ moved from config directory
+
+ Revision 1.1.1.1  1993/07/03  18:58:37  mike
+ move source to cvs
+
+ Revision 1.1  1992/12/27  01:42:50  mike
+ Initial revision
+
+ Revision 4.2.1  92/06/01  00:00:00  bmyers
+ create Zortech C++ version from Borland C++ version
+ ZTC has matherr function and no info for floating point exceptions.
+
+
+
+
+This might not work anymore under mawk 1.2
+MDB 10/94
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/regexp.h:
+*******************************************
+regexp.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: regexp.h,v 1.9 2010/05/07 08:10:40 tom Exp $
+ @Log: regexp.h,v @
+ Revision 1.1.1.1  1993/07/03  18:58:19  mike
+ move source to cvs
+
+ Revision 5.1  1991/12/05  07:59:30  brennan
+ 1.1 pre-release
+
+ 
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/print.c:
+*******************************************
+print.c
+copyright 1991-1993.  Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: print.c,v 1.21 2010/05/07 22:01:46 tom Exp $
+ @Log: print.c,v @
+ Revision 1.7  1996/09/18 01:04:36  mike
+ Check ferror() after print and printf.
+
+ Revision 1.6  1995/10/13  16:56:45  mike
+ Some assumptions that int==long were still in do_printf -- now removed.
+
+ Revision 1.5  1995/06/18  19:17:50  mike
+ Create a type Int which on most machines is an int, but on machines
+ with 16bit ints, i.e., the PC is a long.  This fixes implicit assumption
+ that int==long.
+
+ Revision 1.4  1994/10/08  19:15:50  mike
+ remove SM_DOS
+
+ Revision 1.3  1993/07/15  23:38:19  mike
+ SIZE_T and indent
+
+ Revision 1.2	 1993/07/07  00:07:50  mike
+ more work on 1.2
+
+ Revision 1.1.1.1  1993/07/03	 18:58:18  mike
+ move source to cvs
+
+ Revision 5.6	 1993/02/13  21:57:30  mike
+ merge patch3
+
+ Revision 5.5	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.4.1.2  1993/01/20	 12:53:11  mike
+ d_to_l()
+
+ Revision 5.4.1.1  1993/01/15	 03:33:47  mike
+ patch3: safer double to int conversion
+
+ Revision 5.4	 1992/11/29  18:03:11  mike
+ when printing integers, convert doubles to
+ longs so output is the same on 16bit systems as 32bit systems
+
+ Revision 5.3	 1992/08/17  14:23:21  brennan
+ patch2: After parsing, only bi_sprintf() uses string_buff.
+
+ Revision 5.2	 1992/02/24  10:52:16  brennan
+ printf and sprintf() can now have more args than % conversions
+ removed HAVE_PRINTF_HD -- it was too obscure
+
+ Revision 5.1	 91/12/05  07:56:22  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/fin.h:
+*******************************************
+fin.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: fin.h,v 1.10 2010/06/25 21:53:10 tom Exp $
+ @Log: fin.h,v @
+ Revision 1.1.1.1  1993/07/03  18:58:13  mike
+ move source to cvs
+
+ Revision 5.2  1992/01/06  08:16:24  brennan
+ setmode() proto for MSDOS
+
+ Revision 5.1  91/12/05  07:59:20  brennan
+ 1.1 pre-release
+
+
+
+ fin.h 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/scan.h:
+*******************************************
+scan.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: scan.h,v 1.3 2009/12/13 19:43:23 Jonathan.Nieder Exp $
+ @Log: scan.h,v @
+ Revision 1.3  1995/06/18  19:42:26  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.2  1994/09/23  00:20:06  mike
+ minor bug fix: handle \ in eat_nl()
+
+ Revision 1.1.1.1  1993/07/03  18:58:20  mike
+ move source to cvs
+
+ Revision 5.1  1991/12/05  07:59:33  brennan
+ 1.1 pre-release
+
+ 
+
+ scan.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/mawk.h:
+*******************************************
+mawk.h
+copyright 1991-94, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: mawk.h,v 1.19 2010/05/07 22:01:59 tom Exp $
+ @Log: mawk.h,v @
+ Revision 1.10  1996/08/25 19:31:04  mike
+ Added work-around for solaris strtod overflow bug.
+
+ Revision 1.9  1995/06/18  19:42:21  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.8  1995/06/18  19:17:48  mike
+ Create a type Int which on most machines is an int, but on machines
+ with 16bit ints, i.e., the PC is a long.  This fixes implicit assumption
+ that int==long.
+
+ Revision 1.7  1995/06/09  22:57:17  mike
+ parse() no longer returns on error
+
+ Revision 1.6  1994/12/13  00:09:55  mike
+ rt_nr and rt_fnr for run-time error messages
+
+ Revision 1.5  1994/12/11  23:25:09  mike
+ -Wi option
+
+ Revision 1.4  1994/12/11  22:14:18  mike
+ remove THINK_C #defines.  Not a political statement, just no indication
+ that anyone ever used it.
+
+ Revision 1.3  1993/07/07  00:07:41  mike
+ more work on 1.2
+
+ Revision 1.2  1993/07/04  12:52:06  mike
+ start on autoconfig changes
+ 
+
+  mawk.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/msdos/dosexec.c:
+*******************************************
+dosexec.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: dosexec.c,v 1.3 2010/02/21 16:01:36 tom Exp $
+
+ @Log: dosexec.c,v @
+ Revision 1.3  1995/08/20  16:37:22  mike
+ exit(1) -> exit(2)
+
+ Revision 1.2  1994/10/08  18:50:03  mike
+ remove SM_DOS
+
+ Revision 1.1.1.1  1993/07/03  18:58:47  mike
+ move source to cvs
+
+ Revision 1.4  1992/12/05  22:29:43  mike
+ dos patch 112d:
+ don't use string_buff
+ check COMSPEC
+
+ Revision 1.3  1992/07/10  16:21:57  brennan
+ store exit code of input pipes
+
+ Revision 1.2  1991/11/16  10:27:18  brennan
+ BINMODE
+
+ Revision 1.1  91/10/29  09:45:56  brennan
+ Initial revision
+ 
+
+ system() and pipes() for MSDOS and Win32 console 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/execute.c:
+*******************************************
+execute.c
+copyright 1991-1996, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: execute.c,v 1.16 2010/05/07 22:03:19 tom Exp $
+ @Log: execute.c,v @
+ Revision 1.13  1996/02/01  04:39:40  mike
+ dynamic array scheme
+
+ Revision 1.12  1995/06/06  00:18:24  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.11  1995/03/08  00:06:24  mike
+ add a pointer cast
+
+ Revision 1.10  1994/12/13  00:12:10  mike
+ delete A statement to delete all of A at once
+
+ Revision 1.9  1994/10/25  23:36:11  mike
+ clear aloop stack on _NEXT
+
+ Revision 1.8  1994/10/08  19:15:35  mike
+ remove SM_DOS
+
+ Revision 1.7  1993/12/30  19:10:03  mike
+ minor cleanup to _CALL
+
+ Revision 1.6  1993/12/01  14:25:13  mike
+ reentrant array loops
+
+ Revision 1.5  1993/07/22  00:04:08  mike
+ new op code _LJZ _LJNZ
+
+ Revision 1.4  1993/07/14  12:18:21  mike
+ run thru indent
+
+ Revision 1.3	 1993/07/14  11:50:17  mike
+ rm SIZE_T and void casts
+
+ Revision 1.2	 1993/07/04  12:51:49  mike
+ start on autoconfig changes
+
+ Revision 5.10  1993/02/13  21:57:22	mike
+ merge patch3
+
+ Revision 5.9	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.8	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.7.1.1  1993/01/15	 03:33:39  mike
+ patch3: safer double to int conversion
+
+ Revision 5.7	 1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.6	 1992/11/29  18:57:50  mike
+ field expressions convert to long so 16 bit and 32 bit
+ systems behave the same
+
+ Revision 5.5	 1992/08/11  15:24:55  brennan
+ patch2: F_PUSHA and FE_PUSHA
+ If this is preparation for g?sub(r,s,$expr) or (++|--) on $expr,
+ then if expr > NF, make sure $expr is set to ""
+
+ Revision 5.4	 1992/08/11  14:51:54  brennan
+ patch2:  $expr++ is numeric even if $expr is string.
+ I forgot to do this earlier when handling x++ case.
+
+ Revision 5.3	 1992/07/08  17:03:30  brennan
+ patch 2
+ revert to version 1.0 comparisons, i.e.
+ page 44-45 of AWK book
+
+ Revision 5.2	 1992/04/20  21:40:40  brennan
+ patch 2
+ x++ is numeric, even if x is string
+
+ Revision 5.1	 1991/12/05  07:55:50  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/cast.c:
+*******************************************
+cast.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: cast.c,v 1.10 2010/05/07 00:57:28 tom Exp $
+ @Log: cast.c,v @
+ Revision 1.6  1996/08/11 22:07:50  mike
+ Fix small bozo in rt_error("overflow converting ...")
+
+ Revision 1.5  1995/06/18  19:17:45  mike
+ Create a type Int which on most machines is an int, but on machines
+ with 16bit ints, i.e., the PC is a long.  This fixes implicit assumption
+ that int==long.
+
+ Revision 1.4  1995/06/06  00:02:02  mike
+ fix cast in d_to_l()
+
+ Revision 1.3  1993/07/17  13:22:45  mike
+ indent and general code cleanup
+
+ Revision 1.2	 1993/07/04  12:51:41  mike
+ start on autoconfig changes
+
+ Revision 5.5	 1993/03/06  18:49:45  mike
+ rm rt_overflow from check_strnum
+
+ Revision 5.4	 1993/02/13  21:57:20  mike
+ merge patch3
+
+ Revision 5.3.1.4  1993/01/22	 15:05:19  mike
+ pow2->mpow2 for linux
+
+ Revision 5.3.1.3  1993/01/22	 14:18:33  mike
+ const for strtod and ansi picky compilers
+
+ Revision 5.3.1.2  1993/01/20	 12:53:06  mike
+ d_to_l()
+
+ Revision 5.3.1.1  1993/01/15	 03:33:37  mike
+ patch3: safer double to int conversion
+
+ Revision 5.3	 1992/11/28  23:48:42  mike
+ For internal conversion numeric->string, when testing
+ if integer, use longs instead of ints so 16 and 32 bit
+ systems behave the same
+
+ Revision 5.2	 1992/08/17  14:19:45  brennan
+ patch2: After parsing, only bi_sprintf() uses string_buff.
+
+ Revision 5.1	 1991/12/05  07:55:41  brennan
+ 1.1 pre-release
+
+
+
+  cast.c  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/kw.c:
+*******************************************
+kw.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: kw.c,v 1.4 2009/07/27 15:33:28 tom Exp $
+ @Log: kw.c,v @
+ Revision 1.2  1993/07/17  13:22:59  mike
+ indent and general code cleanup
+
+ Revision 1.1.1.1  1993/07/03	 18:58:15  mike
+ move source to cvs
+
+ Revision 5.1	 1991/12/05  07:56:12  brennan
+ 1.1 pre-release
+
+
+
+ kw.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/jmp.c:
+*******************************************
+jmp.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: jmp.c,v 1.5 2010/05/07 10:59:46 tom Exp $
+ @Log: jmp.c,v @
+ Revision 1.4  1995/06/18  19:42:19  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.3  1995/04/21  14:20:16  mike
+ move_level variable to fix bug in arglist patching of moved code.
+
+ Revision 1.2  1993/07/14  13:17:49  mike
+ rm SIZE_T and run thru indent
+
+ Revision 1.1.1.1  1993/07/03	 18:58:15  mike
+ move source to cvs
+
+ Revision 5.3	 1993/01/09  19:03:44  mike
+ code_pop checks if the resolve_list needs relocation
+
+ Revision 5.2	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.1	 1991/12/05  07:56:10  brennan
+ 1.1 pre-release
+ 
+
+ this module deals with back patching jumps, breaks and continues,
+   and with save and restoring code when we move code.
+   There are three stacks.  If we encounter a compile error, the
+   stacks are frozen, i.e., we do not attempt error recovery
+   on the stacks
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/symtype.h:
+*******************************************
+symtype.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: symtype.h,v 1.7 2010/05/07 08:18:41 tom Exp $
+ @Log: symtype.h,v @
+ Revision 1.6  1996/02/01  04:39:43  mike
+ dynamic array scheme
+
+ Revision 1.5  1995/04/21  14:20:23  mike
+ move_level variable to fix bug in arglist patching of moved code.
+
+ Revision 1.4  1994/12/13  00:13:02  mike
+ delete A statement to delete all of A at once
+
+ Revision 1.3  1993/12/01  14:25:25  mike
+ reentrant array loops
+
+ Revision 1.2  1993/07/15  01:55:08  mike
+ rm SIZE_T & indent
+
+ Revision 1.1.1.1  1993/07/03  18:58:21  mike
+ move source to cvs
+
+ Revision 5.5  1993/01/09  19:03:44  mike
+ code_pop checks if the resolve_list needs relocation
+
+ Revision 5.4  1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.3  1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.2  1992/07/08  15:44:44  brennan
+ patch2: length returns.  I am a wimp
+
+ Revision 5.1  1991/12/05  07:59:37  brennan
+ 1.1 pre-release
+
+
+
+ types related to symbols are defined here 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/split.c:
+*******************************************
+split.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: split.c,v 1.20 2010/06/25 21:54:15 tom Exp $
+ @Log: split.c,v @
+ Revision 1.3  1996/02/01  04:39:42  mike
+ dynamic array scheme
+
+ Revision 1.2  1993/07/15  01:55:03  mike
+ rm SIZE_T & indent
+
+ Revision 1.1.1.1  1993/07/03	 18:58:21  mike
+ move source to cvs
+
+ Revision 5.4	 1993/05/08  18:06:00  mike
+ null_split
+
+ Revision 5.3	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.2	 1992/07/08  21:19:09  brennan
+ patch2
+ change in split() requires that
+ bi_split() call load_array() even
+ when cnt is 0.
+
+ Revision 5.1	 1991/12/05  07:56:31  brennan
+ 1.1 pre-release
+
+
+
+ split.c 
+
+ For all splitting up to MAX_SPLIT fields go into
+   split_buff[], the rest go onto split_ov_list ( split
+   overflow list)
+
+   We can split one of three ways:
+     (1) By space:
+	 space_split() and space_ov_split()
+     (2) By regular expression:
+	 re_split()    and re_ov_split()
+     (3) By "" (null -- split into characters)
+	 null_split() and null_ov_split()
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/makescan.c:
+*******************************************
+makescan.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: makescan.c,v 1.9 2010/01/31 20:48:36 tom Exp $
+ @Log: makescan.c,v @
+ Revision 1.3  1993/07/17  13:23:01  mike
+ indent and general code cleanup
+
+ Revision 1.2	 1993/07/15  13:26:59  mike
+ SIZE_T and indent
+
+ Revision 1.1.1.1  1993/07/03	 18:58:16  mike
+ move source to cvs
+
+ Revision 5.1	 1991/12/05  07:56:16  brennan
+ 1.1 pre-release
+
+
+
+ source for makescan.exe which builds the scancode[]
+   via:	  makescan.exe > scancode.c
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/hash.c:
+*******************************************
+hash.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: hash.c,v 1.7 2010/05/07 08:18:31 tom Exp $
+ @Log: hash.c,v @
+ Revision 1.3  1994/10/08  19:15:43  mike
+ remove SM_DOS
+
+ Revision 1.2  1993/07/16  00:17:35  mike
+ cleanup
+
+ Revision 1.1.1.1  1993/07/03	 18:58:14  mike
+ move source to cvs
+
+ Revision 5.1	 1991/12/05  07:56:05  brennan
+ 1.1 pre-release
+
+ 
+
+ hash.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/field.c:
+*******************************************
+field.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: field.c,v 1.13 2010/05/07 22:03:19 tom Exp $
+ @Log: field.c,v @
+ Revision 1.5  1995/06/18  19:17:47  mike
+ Create a type Int which on most machines is an int, but on machines
+ with 16bit ints, i.e., the PC is a long.  This fixes implicit assumption
+ that int==long.
+
+ Revision 1.4  1994/10/08  19:15:38  mike
+ remove SM_DOS
+
+ Revision 1.3  1993/07/14  12:32:39  mike
+ run thru indent
+
+ Revision 1.2	 1993/07/14  12:22:11  mike
+ rm SIZE_T and (void) casts
+
+ Revision 1.1.1.1  1993/07/03	 18:58:12  mike
+ move source to cvs
+
+ Revision 5.7	 1993/05/08  18:06:00  mike
+ null_split
+
+ Revision 5.6	 1993/02/13  21:57:25  mike
+ merge patch3
+
+ Revision 5.5	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.4.1.2  1993/01/20	 12:53:08  mike
+ d_to_l()
+
+ Revision 5.4.1.1  1993/01/15	 03:33:42  mike
+ patch3: safer double to int conversion
+
+ Revision 5.4	 1992/11/29  22:52:11  mike
+ double->string conversions uses long ints for 16/32 bit
+ compatibility.
+ Fixed small LM_DOS bozo.
+
+ Revision 5.3	 1992/08/17  14:21:10  brennan
+ patch2: After parsing, only bi_sprintf() uses string_buff.
+
+ Revision 5.2	 1992/07/10  16:17:10  brennan
+ MsDOS: remove NO_BINMODE macro
+
+ Revision 5.1	 1991/12/05  07:55:57  brennan
+ 1.1 pre-release
+
+
+
+ field.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/sizes.h:
+*******************************************
+sizes.h
+copyright 1991, 1992.  Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: sizes.h,v 1.6 2010/02/21 22:37:21 tom Exp $
+ @Log: sizes.h,v @
+ Revision 1.8  1995/10/14  22:09:51  mike
+ getting MAX__INT from values.h didn't really work since the value was
+ unusable in an #if MAX__INT <= 0x7fff
+ at least it didn't work under sunos -- so use of values.h is a goner
+
+ Revision 1.7  1995/06/18  19:17:51  mike
+ Create a type Int which on most machines is an int, but on machines
+ with 16bit ints, i.e., the PC is a long.  This fixes implicit assumption
+ that int==long.
+
+ Revision 1.6  1994/10/10  01:39:01  mike
+ get MAX__INT from limits.h or values.h
+
+ Revision 1.5  1994/10/08  19:15:53  mike
+ remove SM_DOS
+
+ Revision 1.4  1994/09/25  23:00:49  mike
+ remove #if 0
+
+ Revision 1.3  1993/07/15  23:56:15  mike
+ general cleanup
+
+ Revision 1.2  1993/07/04  12:52:13  mike
+ start on autoconfig changes
+
+ Revision 5.3  1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.2  1992/08/27  03:20:08  mike
+ patch2: increase A_HASH_PRIME
+
+ Revision 5.1  1991/12/05  07:59:35  brennan
+ 1.1 pre-release
+
+
+
+  sizes.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/fcall.c:
+*******************************************
+fcall.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: fcall.c,v 1.7 2010/05/07 09:30:33 tom Exp $
+ @Log: fcall.c,v @
+ Revision 1.7  1995/08/27  15:46:47  mike
+ change some errmsgs to compile_errors
+
+ Revision 1.6  1995/06/09  22:58:24  mike
+ cast to shutup solaris cc on comparison of short to ushort
+
+ Revision 1.5  1995/06/06  00:18:26  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.4  1995/04/21  14:20:14  mike
+ move_level variable to fix bug in arglist patching of moved code.
+
+ Revision 1.3  1995/02/19  22:15:37  mike
+ Always set the call_offset field in a CA_REC (for obscure
+ reasons in fcall.c (see comments) there.)
+
+ Revision 1.2  1993/07/17  13:22:52  mike
+ indent and general code cleanup
+
+ Revision 1.1.1.1  1993/07/03	 18:58:11  mike
+ move source to cvs
+
+ Revision 5.4	 1993/01/09  19:03:44  mike
+ code_pop checks if the resolve_list needs relocation
+
+ Revision 5.3	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.2	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.1	 1991/12/05  07:55:54  brennan
+ 1.1 pre-release
+
+ 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/bi_vars.h:
+*******************************************
+bi_vars.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: bi_vars.h,v 1.6 2009/12/16 23:32:06 tom Exp $
+ @Log: bi_vars.h,v @
+ Revision 1.1.1.1  1993/07/03  18:58:09  mike
+ move source to cvs
+
+ Revision 5.2  1992/07/10  16:17:10  brennan
+ MsDOS: remove NO_BINMODE macro
+
+ Revision 5.1  1991/12/05  07:59:05  brennan
+ 1.1 pre-release
+
+ 
+
+ bi_vars.h 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/zmalloc.c:
+*******************************************
+zmalloc.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: zmalloc.c,v 1.12 2010/05/07 22:11:34 tom Exp $
+ @Log: zmalloc.c,v @
+ Revision 1.6  1995/06/06  00:18:35  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.5  1995/03/08  00:06:26  mike
+ add a pointer cast
+
+ Revision 1.4  1993/07/14  12:45:15  mike
+ run thru indent
+
+ Revision 1.3	 1993/07/07  00:07:54  mike
+ more work on 1.2
+
+ Revision 1.2	 1993/07/03  21:15:35  mike
+ bye bye yacc_mem
+
+ Revision 1.1.1.1  1993/07/03	 18:58:23  mike
+ move source to cvs
+
+ Revision 5.4	 1993/02/13  21:57:38  mike
+ merge patch3
+
+ Revision 5.3	 1993/01/14  13:12:33  mike
+ casts in front of malloc
+
+ Revision 5.1.1.1  1993/02/06	 11:12:19  mike
+ fix bug in reuse of parser table memory
+ for most users ifdef the mess out
+
+ Revision 5.1	 1991/12/05  07:56:35  brennan
+ 1.1 pre-release
+
+
+
+  zmalloc.c  
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/msdos/vs6.h, mawk-1.3.4-20100625/msdos/msc.h:
+*******************************************
+msc.h
+copyright 1994, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+ Microsoft C 6.0A under MSDOS 
+
+
+ $MawkId: vs6.h,v 1.1 2010/02/21 16:13:36 tom Exp $
+
+ @Log: msc.h,v @
+ Revision 1.6  1996/07/28 21:46:16  mike
+ gnuish patch
+
+ Revision 1.5  1995/08/20  17:44:38  mike
+ minor fixes to msc and lower case makefile names
+
+ Revision 1.4  1995/01/08  21:50:43  mike
+ remove extra #endif
+
+ Revision 1.3  1994/10/08  19:12:05  mike
+ SET_PROGNAME
+
+ Revision 1.2  1994/10/08  18:49:28  mike
+ add MAX__INT etc
+
+ Revision 1.1  1994/10/08  18:24:40  mike
+ moved from config directory
+
+ 
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/code.h:
+*******************************************
+code.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: code.h,v 1.4 2010/05/07 09:49:46 tom Exp $
+ @Log: code.h,v @
+ Revision 1.5  1995/06/18  19:42:15  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.4  1994/12/13  00:13:01  mike
+ delete A statement to delete all of A at once
+
+ Revision 1.3  1993/12/01  14:25:06  mike
+ reentrant array loops
+
+ Revision 1.2  1993/07/22  00:04:01  mike
+ new op code _LJZ _LJNZ
+
+ Revision 1.1.1.1  1993/07/03  18:58:10  mike
+ move source to cvs
+
+ Revision 5.3  1993/01/14  13:11:11  mike
+ code2() -> xcode2()
+
+ Revision 5.2  1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.1  1991/12/05  07:59:07  brennan
+ 1.1 pre-release
+
+
+
+  code.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/msdos/tcc.h:
+*******************************************
+tcc.h
+copyright 1994, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+ Turbo C under MSDOS 
+
+ @Log: tcc.h,v @
+ Revision 1.5  1995/08/20  17:14:13  mike
+ get size_t from <stddef.h>
+
+ Revision 1.4  1995/01/08  21:48:00  mike
+ remove extra #endif
+
+ Revision 1.3  1994/10/08  19:12:07  mike
+ SET_PROGNAME
+
+ Revision 1.2  1994/10/08  18:49:29  mike
+ add MAX__INT etc
+
+ Revision 1.1  1994/10/08  18:24:41  mike
+ moved from config directory
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/da.c:
+*******************************************
+da.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: da.c,v 1.8 2010/05/07 00:56:51 tom Exp $
+ @Log: da.c,v @
+ Revision 1.6  1995/06/18  19:19:59  mike
+ remove use of comma operator that broke some sysVr3 compilers
+
+ Revision 1.5  1994/12/13  00:12:08  mike
+ delete A statement to delete all of A at once
+
+ Revision 1.4  1994/10/08  19:15:32  mike
+ remove SM_DOS
+
+ Revision 1.3  1993/12/01  14:25:10  mike
+ reentrant array loops
+
+ Revision 1.2  1993/07/22  00:04:05  mike
+ new op code _LJZ _LJNZ
+
+ Revision 1.1.1.1  1993/07/03	 18:58:10  mike
+ move source to cvs
+
+ Revision 5.4	 1993/01/09  19:05:48  mike
+ dump code to stdout and exit(0)
+
+ Revision 5.3	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.2	 1992/07/25  21:35:25  brennan
+ patch2
+ fixed small typo on da of _PRE_DEC
+
+ Revision 5.1	 1991/12/05  07:55:45  brennan
+ 1.1 pre-release
+
+ 
+
+  da.c  
+  disassemble code 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/bi_funct.h:
+*******************************************
+bi_funct.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: bi_funct.h,v 1.2 2009/07/23 23:20:19 tom Exp $
+ @Log: bi_funct.h,v @
+ Revision 1.2  1994/12/11  22:10:15  mike
+ fflush
+
+ Revision 1.1.1.1  1993/07/03  18:58:08  mike
+ move source to cvs
+
+ Revision 5.1  1991/12/05  07:59:03  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/code.c:
+*******************************************
+code.c
+copyright 1991-93, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: code.c,v 1.5 2010/05/07 09:47:06 tom Exp $
+ @Log: code.c,v @
+ Revision 1.6  1995/06/18  19:42:13  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.5  1995/06/09  23:21:36  mike
+ make sure there is an execution block in case user defines function,
+ but no pattern-action pairs
+
+ Revision 1.4  1995/03/08  00:06:22  mike
+ add a pointer cast
+
+ Revision 1.3  1994/10/08  19:15:29  mike
+ remove SM_DOS
+
+ Revision 1.2  1993/07/07  00:07:38  mike
+ more work on 1.2
+
+ Revision 1.1.1.1  1993/07/03	 18:58:10  mike
+ move source to cvs
+
+ Revision 5.4	 1993/01/14  13:11:11  mike
+ code2() -> xcode2()
+
+ Revision 5.3	 1993/01/09  20:15:35  mike
+ code_pop checks if the resolve_list needs relocation
+
+ Revision 5.2	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.1	 1991/12/05  07:55:43  brennan
+ 1.1 pre-release
+
+ 
+
+  code.c  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/bi_funct.c:
+*******************************************
+bi_funct.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: bi_funct.c,v 1.25 2010/05/07 22:00:37 tom Exp $
+ @Log: bi_funct.c,v @
+ Revision 1.9  1996/01/14  17:16:11  mike
+ flush_all_output() before system()
+
+ Revision 1.8  1995/08/27  18:13:03  mike
+ fix random number generator to work with longs larger than 32bits
+
+ Revision 1.7  1995/06/09  22:53:30  mike
+ change a memcmp() to strncmp() to make purify happy
+
+ Revision 1.6  1994/12/13  00:26:32  mike
+ rt_nr and rt_fnr for run-time error messages
+
+ Revision 1.5  1994/12/11  22:14:11  mike
+ remove THINK_C #defines.  Not a political statement, just no indication
+ that anyone ever used it.
+
+ Revision 1.4  1994/12/10  21:44:12  mike
+ fflush builtin
+
+ Revision 1.3  1993/07/14  11:46:36  mike
+ code cleanup
+
+ Revision 1.2	 1993/07/14  01:22:27  mike
+ rm SIZE_T
+
+ Revision 1.1.1.1  1993/07/03	 18:58:08  mike
+ move source to cvs
+
+ Revision 5.5	 1993/02/13  21:57:18  mike
+ merge patch3
+
+ Revision 5.4	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.3.1.2  1993/01/27	 01:04:06  mike
+ minor tuning to str_str()
+
+ Revision 5.3.1.1  1993/01/15	 03:33:35  mike
+ patch3: safer double to int conversion
+
+ Revision 5.3	 1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.2	 1992/07/08  15:43:41  brennan
+ patch2: length returns.  I am a wimp
+
+ Revision 5.1	 1991/12/05  07:55:35  brennan
+ 1.1 pre-release
+ 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/scancode.h:
+*******************************************
+scancode.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: scancode.h,v 1.1 2009/12/13 19:43:23 Jonathan.Nieder Exp $
+ @Log: scancode.h,v @
+ 
+
+ scancode.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexpdb.c:
+*******************************************
+rexpdb.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexpdb.c,v 1.9 2010/05/07 22:09:39 tom Exp $
+ @Log: rexpdb.c,v @
+ Revision 1.2  1993/07/23  13:21:51  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03  18:58:28  mike
+ move source to cvs
+
+ Revision 3.2  1991/08/13  09:10:09  brennan
+ VERSION .9994
+
+ Revision 3.1  91/06/07  10:33:30  brennan
+ VERSION 0.995
+ 
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexp0.c:
+*******************************************
+rexp0.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexp0.c,v 1.23 2010/05/07 22:18:57 tom Exp $
+ @Log: rexp0.c,v @
+ Revision 1.5  1996/11/08 15:39:27  mike
+ While cleaning up block_on, I introduced a bug. Now fixed.
+
+ Revision 1.4  1996/09/02 18:47:09  mike
+ Allow []...] and [^]...] to put ] in a class.
+ Make ^* and ^+ syntax errors.
+
+ Revision 1.3  1994/12/26  16:37:52  mike
+ 1.1.2 fix to do_str was incomplete -- fix it
+
+ Revision 1.2  1993/07/23  13:21:38  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03	 18:58:27  mike
+ move source to cvs
+
+ Revision 3.8	 1992/04/21  20:22:38  brennan
+ 1.1 patch2
+ [c1-c2] now works if c2 is an escaped character
+
+ Revision 3.7	 1992/03/24  09:33:12  brennan
+ 1.1 patch2
+ When backing up in do_str, check if last character was escaped
+
+ Revision 3.6	 92/01/21  17:32:51  brennan
+ added some casts so that character classes work with signed chars
+
+ Revision 3.5	 91/10/29  10:53:57  brennan
+ SIZE_T
+
+ Revision 3.4	 91/08/13  09:10:05  brennan
+ VERSION .9994
+
+ Revision 3.3	 91/07/19  07:29:24  brennan
+ backslash at end of regular expression now stands for backslash
+
+ Revision 3.2	 91/07/19  06:58:23  brennan
+ removed small bozo in processing of escape characters
+
+ Revision 3.1	 91/06/07  10:33:20  brennan
+ VERSION 0.995
+
+ Revision 1.2	 91/06/05  08:59:36  brennan
+ changed RE_free to free
+
+ Revision 1.1	 91/06/03  07:10:15  brennan
+ Initial revision
+
+
+
+  lexical scanner  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/init.h:
+*******************************************
+init.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: init.h,v 1.3 2009/07/23 23:56:08 tom Exp $
+ @Log: init.h,v @
+ Revision 1.2  1995/06/18  19:42:18  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.1.1.1  1993/07/03  18:58:14  mike
+ move source to cvs
+
+ Revision 5.1  1991/12/05  07:59:22  brennan
+ 1.1 pre-release
+
+ 
+
+ init.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/init.c:
+*******************************************
+init.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: init.c,v 1.23 2010/05/07 21:58:49 tom Exp $
+ @Log: init.c,v @
+ Revision 1.11  1995/08/20  17:35:21  mike
+ include <stdlib.h> for MSC, needed for environ decl
+
+ Revision 1.10  1995/06/09  22:51:50  mike
+ silently exit(0) if no program
+
+ Revision 1.9  1995/06/06  00:18:30  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.8  1994/12/14  14:40:34  mike
+ -Wi option
+
+ Revision 1.7  1994/12/11  22:43:20  mike
+ don't assume **environ is writable
+
+ Revision 1.6  1994/12/11  22:14:16  mike
+ remove THINK_C #defines.  Not a political statement, just no indication
+ that anyone ever used it.
+
+ Revision 1.5  1994/10/08  19:15:45  mike
+ remove SM_DOS
+
+ Revision 1.4  1994/03/11  02:23:49  mike
+ -We option
+
+ Revision 1.3  1993/07/17  00:45:14  mike
+ indent
+
+ Revision 1.2	 1993/07/04  12:52:00  mike
+ start on autoconfig changes
+
+ Revision 5.5	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.4	 1992/12/24  01:58:19  mike
+ 1.1.2d changes for MsDOS
+
+ Revision 5.3	 1992/07/10  16:17:10  brennan
+ MsDOS: remove NO_BINMODE macro
+
+ Revision 5.2	 1992/01/09  08:46:14  brennan
+ small change for MSC
+
+ Revision 5.1	 91/12/05  07:56:07  brennan
+ 1.1 pre-release
+
+
+
+ init.c 
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/field.h:
+*******************************************
+field.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: field.h,v 1.8 2010/05/07 22:03:31 tom Exp $
+ @Log: field.h,v @
+ Revision 1.2  1995/06/18  19:42:16  mike
+ Remove some redundant declarations and add some prototypes
+
+ Revision 1.1.1.1  1993/07/03  18:58:12  mike
+ move source to cvs
+
+ Revision 5.2  1992/01/06  08:10:24  brennan
+ set_binmode() proto for MSDOS
+
+ Revision 5.1  91/12/05  07:59:16  brennan
+ 1.1 pre-release
+ 
+ 
+
+ field.h 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/memory.c:
+*******************************************
+memory.c
+copyright 1991, 1992  Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: memory.c,v 1.6 2010/05/07 00:41:10 tom Exp $
+ @Log: memory.c,v @
+ Revision 1.2  1993/07/17  13:23:08  mike
+ indent and general code cleanup
+
+ Revision 1.1.1.1  1993/07/03	 18:58:17  mike
+ move source to cvs
+
+ Revision 5.2	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.1	 1991/12/05  07:56:21  brennan
+ 1.1 pre-release
+
+ 
+
+ memory.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/jmp.h:
+*******************************************
+jmp.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: jmp.h,v 1.3 2009/07/24 00:55:59 tom Exp $
+ @Log: jmp.h,v @
+ Revision 1.2  1995/04/21  14:20:19  mike
+ move_level variable to fix bug in arglist patching of moved code.
+
+ Revision 1.1.1.1  1993/07/03  18:58:15  mike
+ move source to cvs
+
+ Revision 5.2  1993/01/09  19:03:44  mike
+ code_pop checks if the resolve_list needs relocation
+
+ Revision 5.1  1991/12/05  07:59:24  brennan
+ 1.1 pre-release
+
+ 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexp2.c:
+*******************************************
+rexp2.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexp2.c,v 1.18 2010/05/07 22:08:36 tom Exp $
+ @Log: rexp2.c,v @
+ Revision 1.3  1993/07/24  17:55:12  mike
+ more cleanup
+
+ Revision 1.2	 1993/07/23  13:21:44  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03	 18:58:28  mike
+ move source to cvs
+
+ Revision 3.8	 1992/12/24  00:36:44  mike
+ fixed major bozo for LMDOS when growing stack
+ fixed potential LMDOS bozo with M_STR+U_ON+END_ON
+ fixed minor bug in M_CLASS+U_ON+END_ON
+
+ Revision 3.7	 92/01/21  17:33:15  brennan
+ added some casts so that character classes work with signed chars
+
+ Revision 3.6	 91/10/29  10:54:03  brennan
+ SIZE_T
+
+ Revision 3.5	 91/08/13  09:10:15  brennan
+ VERSION .9994
+
+ Revision 3.4	 91/08/08  07:53:34  brennan
+ work around for turboC realloc() bug
+
+ Revision 3.4	 91/08/07  07:10:47  brennan
+ work around for TurboC realloc() bug
+
+ Revision 3.3	 91/08/04  15:45:57  brennan
+ minor change for large model dos
+
+ Revision 3.2	 91/06/10  16:18:14  brennan
+ changes for V7
+
+ Revision 3.1	 91/06/07  10:33:25  brennan
+ VERSION 0.995
+
+ Revision 1.8	 91/06/05  09:01:33  brennan
+ changes to RE_new_run_stack
+
+ Revision 1.7	 91/05/31  10:56:02  brennan
+ stack_empty hack for DOS large model
+
+
+
+  test a string against a machine   
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/main.c:
+*******************************************
+main.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: main.c,v 1.8 2009/12/14 00:23:56 tom Exp $
+ @Log: main.c,v @
+ Revision 1.4  1995/06/09  22:57:19  mike
+ parse() no longer returns on error
+
+ Revision 1.3  1995/06/06  00:18:32  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.2  1993/07/17  00:45:19  mike
+ indent
+
+ Revision 1.1.1.1  1993/07/03	 18:58:16  mike
+ move source to cvs
+
+ Revision 5.4	 1993/02/13  21:57:27  mike
+ merge patch3
+
+ Revision 5.3	 1993/01/07  02:50:33  mike
+ relative vs absolute code
+
+ Revision 5.2.1.1  1993/01/15	 03:33:44  mike
+ patch3: safer double to int conversion
+
+ Revision 5.2	 1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.1	 1991/12/05  07:56:14  brennan
+ 1.1 pre-release
+
+ 
+
+  main.c  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/fin.c:
+*******************************************
+fin.c
+copyright 1991, 1992.  Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: fin.c,v 1.27 2010/06/25 21:53:18 tom Exp $
+ @Log: fin.c,v @
+ Revision 1.10  1995/12/24  22:23:22  mike
+ remove errmsg() from inside FINopen
+
+ Revision 1.9  1995/06/06  00:18:29  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.8  1994/12/13  00:26:35  mike
+ rt_nr and rt_fnr for run-time error messages
+
+ Revision 1.7  1994/12/11  23:25:05  mike
+ -Wi option
+
+ Revision 1.6  1994/12/11  22:14:15  mike
+ remove THINK_C #defines.  Not a political statement, just no indication
+ that anyone ever used it.
+
+ Revision 1.5  1994/10/08  19:15:42  mike
+ remove SM_DOS
+
+ Revision 1.4  1993/07/17  13:22:55  mike
+ indent and general code cleanup
+
+ Revision 1.3  1993/07/15  13:26:55  mike
+ SIZE_T and indent
+
+ Revision 1.2	 1993/07/04  12:51:57  mike
+ start on autoconfig changes
+
+ Revision 1.1.1.1  1993/07/03	 18:58:13  mike
+ move source to cvs
+
+ Revision 5.7	 1993/01/01  21:30:48  mike
+ split new_STRING() into new_STRING and new_STRING0
+
+ Revision 5.6	 1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.5	 1992/07/28  15:11:30  brennan
+ minor change in finding eol, needed for MsDOS
+
+ Revision 5.4	 1992/07/10  16:17:10  brennan
+ MsDOS: remove NO_BINMODE macro
+
+ Revision 5.3	 1992/07/08  16:14:27  brennan
+ FILENAME and FNR retain last values in the
+ END block.
+
+ Revision 5.2	 1992/02/21  13:30:08  brennan
+ fixed bug that free'd FILENAME twice if
+ command line was var=value only
+
+ Revision 5.1	 91/12/05  07:56:02  brennan
+ 1.1 pre-release
+
+
+
+ fin.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/types.h:
+*******************************************
+types.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: types.h,v 1.7 2010/05/07 00:52:42 tom Exp $
+ @Log: types.h,v @
+ Revision 1.3  1993/07/15  23:56:18  mike
+ general cleanup
+
+ Revision 1.2  1993/07/04  12:52:15  mike
+ start on autoconfig changes
+
+ Revision 5.1  1991/12/05  07:59:39  brennan
+ 1.1 pre-release
+
+ 
+
+  types.h  
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/files.h:
+*******************************************
+files.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: files.h,v 1.8 2009/12/16 23:45:58 tom Exp $
+ @Log: files.h,v @
+ Revision 1.3  1996/01/14  17:14:11  mike
+ flush_all_output()
+
+ Revision 1.2  1994/12/11  22:14:13  mike
+ remove THINK_C #defines.  Not a political statement, just no indication
+ that anyone ever used it.
+
+ Revision 1.1.1.1  1993/07/03  18:58:13  mike
+ move source to cvs
+
+ Revision 5.2  1992/12/17  02:48:01  mike
+ 1.1.2d changes for DOS
+
+ Revision 5.1  1991/12/05  07:59:18  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/rexp.h:
+*******************************************
+rexp.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: rexp.h,v 1.22 2010/05/07 22:05:59 tom Exp $
+ @Log: rexp.h,v @
+ Revision 1.2  1993/07/23  13:21:35  mike
+ cleanup rexp code
+
+ Revision 1.1.1.1  1993/07/03  18:58:27  mike
+ move source to cvs
+
+ Revision 3.6  1992/01/21  17:31:45  brennan
+ moved ison() macro out of rexp[23].c
+
+ Revision 3.5  91/10/29  10:53:55  brennan
+ SIZE_T
+ 
+ Revision 3.4  91/08/13  09:10:02  brennan
+ VERSION .9994
+ 
+ Revision 3.3  91/06/15  09:40:25  brennan
+ gcc defines __STDC__ but might not have stdlib.h
+ 
+ Revision 3.2  91/06/10  16:18:19  brennan
+ changes for V7
+ 
+ Revision 3.1  91/06/07  10:33:18  brennan
+ VERSION 0.995
+ 
+ Revision 1.3  91/06/05  08:57:57  brennan
+ removed RE_xmalloc()
+ 
+ Revision 1.2  91/06/03  07:23:26  brennan
+ changed type of RE_error_trap
+ 
+ Revision 1.1  91/06/03  07:05:41  brennan
+ Initial revision
+ 
+ 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/zmalloc.h:
+*******************************************
+zmalloc.h
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: zmalloc.h,v 1.4 2010/05/07 00:39:08 tom Exp $
+ @Log: zmalloc.h,v @
+ Revision 1.2  1993/07/04  12:52:22  mike
+ start on autoconfig changes
+
+ Revision 1.1.1.1  1993/07/03  18:58:23  mike
+ move source to cvs
+
+ Revision 5.1  1991/12/05  07:59:41  brennan
+ 1.1 pre-release
+
+ 
+
+ zmalloc.h 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/error.c:
+*******************************************
+error.c
+copyright 1991, 1992 Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: error.c,v 1.11 2009/12/17 00:05:10 tom Exp $
+ @Log: error.c,v @
+ Revision 1.6  1995/06/06  00:18:22  mike
+ change mawk_exit(1) to mawk_exit(2)
+
+ Revision 1.5  1994/12/13  00:26:33  mike
+ rt_nr and rt_fnr for run-time error messages
+
+ Revision 1.4  1994/09/23  00:20:00  mike
+ minor bug fix: handle \ in eat_nl()
+
+ Revision 1.3  1993/07/17  13:22:49  mike
+ indent and general code cleanup
+
+ Revision 1.2  1993/07/04  12:51:44  mike
+ start on autoconfig changes
+
+ Revision 1.1.1.1  1993/07/03  18:58:11  mike
+ move source to cvs
+
+ Revision 5.3  1993/01/22  14:55:46  mike
+ trivial change for unexpected_char()
+
+ Revision 5.2  1992/10/02  23:26:04  mike
+ using vargs.h
+
+ Revision 5.1  1991/12/05  07:55:48  brennan
+ 1.1 pre-release
+
+
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/bi_vars.c:
+*******************************************
+bi_vars.c
+copyright 1991, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: bi_vars.c,v 1.7 2009/12/16 23:38:14 tom Exp $
+ @Log: bi_vars.c,v @
+ Revision 1.1.1.1  1993/07/03  18:58:09  mike
+ move source to cvs
+
+ Revision 5.2  1992/07/10  16:17:10  brennan
+ MsDOS: remove NO_BINMODE macro
+
+ Revision 5.1  1991/12/05  07:55:38  brennan
+ 1.1 pre-release
+
+ 
+
+ bi_vars.c 
+
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/array.h, mawk-1.3.4-20100625/array.c:
+array.h
+
+array.c
+
+@MawkId: array.w,v 1.14 2010/06/25 22:31:42 tom Exp @
+
+copyright 1991-96, Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+
+
+
+This file was generated with the command
+
+   notangle -R'"array.h"' array.w > array.h
+
+   notangle -R'"array.c"' array.w > array.c
+
+Notangle is part of Norman Ramsey's noweb literate programming package
+available from CTAN(ftp.shsu.edu).
+
+It's easiest to read or modify this file by working with array.w.
+
+--------------------------------------------------------------------
+
+mawk-1.3.4-20100625/version.c:
+*******************************************
+version.c
+copyright 1991-95.  Michael D. Brennan
+
+This is a source file for mawk, an implementation of
+the AWK programming language.
+
+Mawk is distributed without warranty under the terms of
+the GNU General Public License, version 2, 1991.
+*******************************************
+
+
+ $MawkId: version.c,v 1.9 2010/06/21 21:44:34 tom Exp $
+
+ @Log: version.c,v @
+ Revision 1.10  1996/07/28 21:47:07  mike
+ gnuish patch
+
+ Revision 1.9  1996/02/01  04:44:15  mike
+ roll a beta version
+
+ Revision 1.8  1995/08/20  17:40:45  mike
+ changed _stackavail to stackavail for MSC
+
+ Revision 1.7  1995/06/10  17:04:10  mike
+ "largest field" replaced by "max NF"
+
+ 
+
+
+--------------------------------------------------------------------
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/copyright/tmux.copyright	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,248 @@
+tmux-1.3/compat/tree.h:
+	$OpenBSD: tree.h,v 1.12 2009/03/02 09:42:55 mikeb Exp $	
+
+ Copyright 2002 Niels Provos <[email protected]>
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+
+
+--------------------------------------------------------------------
+
+tmux-1.3/compat/fgetln.c:
+	$NetBSD: fgetln.c,v 1.3 2007/08/07 02:06:58 lukem Exp $	
+
+-
+ Copyright (c) 1998 The NetBSD Foundation, Inc.
+ All rights reserved.
+
+ This code is derived from software contributed to The NetBSD Foundation
+ by Christos Zoulas.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of The NetBSD Foundation nor the names of its
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ 
+
+
+--------------------------------------------------------------------
+
+tmux-1.3/compat/strlcat.c, tmux-1.3/compat/strtonum.c, tmux-1.3/compat/imsg.c, tmux-1.3/compat/imsg.h, tmux-1.3/compat/strlcpy.c, tmux-1.3/compat/imsg-buffer.c:
+	$OpenBSD: strlcat.c,v 1.13 2005/08/08 08:05:37 espie Exp $	
+
+
+ Copyright (c) 1998 Todd C. Miller <[email protected]>
+
+	$OpenBSD: strtonum.c,v 1.6 2004/08/03 19:38:01 millert Exp $	
+
+
+ Copyright (c) 2004 Ted Unangst and Todd Miller
+ All rights reserved.
+
+	$OpenBSD: imsg.c,v 1.3 2010/05/26 13:56:07 nicm Exp $	
+
+
+	$OpenBSD: imsg.h,v 1.4 2010/05/26 13:56:07 nicm Exp $	
+
+
+ Copyright (c) 2006, 2007 Pierre-Yves Ritschard <[email protected]>
+ Copyright (c) 2006, 2007, 2008 Reyk Floeter <[email protected]>
+ Copyright (c) 2003, 2004 Henning Brauer <[email protected]>
+
+	$OpenBSD: strlcpy.c,v 1.10 2005/08/08 08:05:37 espie Exp $	
+
+
+ Copyright (c) 1998 Todd C. Miller <[email protected]>
+
+	$OpenBSD: imsg-buffer.c,v 1.3 2010/05/26 13:56:07 nicm Exp $	
+
+
+ Copyright (c) 2003, 2004 Henning Brauer <[email protected]>
+
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
+
+--------------------------------------------------------------------
+
+tmux-1.3/compat/unvis.c, tmux-1.3/compat/strcasestr.c, tmux-1.3/compat/getopt.c, tmux-1.3/compat/vis.c, tmux-1.3/compat/bitstring.h, tmux-1.3/compat/strsep.c, tmux-1.3/compat/vis.h, tmux-1.3/compat/queue.h, tmux-1.3/compat/daemon.c:
+	$OpenBSD: unvis.c,v 1.12 2005/08/08 08:05:34 espie Exp $ 
+-
+ Copyright (c) 1989, 1993
+	The Regents of the University of California.  All rights reserved.
+
+	$OpenBSD: strcasestr.c,v 1.3 2006/03/31 05:34:55 deraadt Exp $	
+	$NetBSD: strcasestr.c,v 1.2 2005/02/09 21:35:47 kleink Exp $	
+
+-
+ Copyright (c) 1990, 1993
+	The Regents of the University of California.  All rights reserved.
+
+ This code is derived from software contributed to Berkeley by
+ Chris Torek.
+
+ Copyright (c) 1987, 1993, 1994
+	$OpenBSD: vis.c,v 1.19 2005/09/01 17:15:49 millert Exp $ 
+-
+ Copyright (c) 1989, 1993
+	The Regents of the University of California.  All rights reserved.
+
+	$OpenBSD: bitstring.h,v 1.5 2003/06/02 19:34:12 millert Exp $	
+	$NetBSD: bitstring.h,v 1.5 1997/05/14 15:49:55 pk Exp $	
+
+
+ Copyright (c) 1989, 1993
+	The Regents of the University of California.  All rights reserved.
+
+ This code is derived from software contributed to Berkeley by
+ Paul Vixie.
+
+	$OpenBSD: strsep.c,v 1.6 2005/08/08 08:05:37 espie Exp $	
+
+-
+ Copyright (c) 1990, 1993
+	The Regents of the University of California.  All rights reserved.
+
+	$OpenBSD: vis.h,v 1.11 2005/08/09 19:38:31 millert Exp $	
+	$NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $	
+
+-
+ Copyright (c) 1990 The Regents of the University of California.
+ All rights reserved.
+
+	$OpenBSD: queue.h,v 1.31 2005/11/25 08:06:25 otto Exp $	
+	$NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $	
+
+
+ Copyright (c) 1991, 1993
+	$OpenBSD: daemon.c,v 1.6 2005/08/08 08:05:33 espie Exp $ 
+-
+ Copyright (c) 1990, 1993
+	The Regents of the University of California.  All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+ 
+
+ OPENBSD ORIGINAL: lib/libc/stdlib/getopt.c 
+	@(#)bitstring.h	8.1 (Berkeley) 7/19/93
+ 
+	@(#)vis.h	5.9 (Berkeley) 4/3/91
+ 
+	@(#)queue.h	8.5 (Berkeley) 8/20/94
+ 
+
+--------------------------------------------------------------------
+
+tmux-1.3/cmd-run-shell.c, tmux-1.3/cmd-if-shell.c, tmux-1.3/cmd-send-keys.c, tmux-1.3/cmd-move-window.c, tmux-1.3/tty-term.c, tmux-1.3/utf8.c, tmux-1.3/cmd-show-window-options.c, tmux-1.3/cmd-set-window-option.c, tmux-1.3/mode-key.c, tmux-1.3/cmd-lock-server.c, tmux-1.3/cmd-generic.c, tmux-1.3/grid.c, tmux-1.3/cmd-string.c, tmux-1.3/colour.c, tmux-1.3/cmd-respawn-window.c, tmux-1.3/grid-view.c, tmux-1.3/compat/forkpty-sunos.c, tmux-1.3/options.c, tmux-1.3/cmd-server-info.c, tmux-1.3/cfg.c, tmux-1.3/cmd-command-prompt.c, tmux-1.3/attributes.c, tmux-1.3/osdep-darwin.c, tmux-1.3/compat/forkpty-aix.c, tmux-1.3/layout.c, tmux-1.3/cmd-show-messages.c, tmux-1.3/cmd-choose-session.c, tmux-1.3/cmd-show-environment.c, tmux-1.3/cmd-clock-mode.c, tmux-1.3/cmd-next-layout.c, tmux-1.3/cmd-split-window.c, tmux-1.3/grid-utf8.c, tmux-1.3/osdep-netbsd.c, tmux-1.3/cmd-lock-session.c, tmux-1.3/cmd-swap-pane.c, tmux-1.3/cmd-suspend-client.c, tmux-1.3/cmd-set-environment.c, tmux-1.3/osdep-freebsd.c, tmux-1.3/cmd-list-panes.c, tmux-1.3/server-window.c, tmux-1.3/xterm-keys.c, tmux-1.3/job.c, tmux-1.3/cmd-choose-window.c, tmux-1.3/cmd-previous-layout.c, tmux-1.3/cmd-lock-client.c, tmux-1.3/cmd-select-pane.c, tmux-1.3/clock.c, tmux-1.3/window-choose.c, tmux-1.3/cmd-display-panes.c, tmux-1.3/cmd-resize-pane.c, tmux-1.3/cmd-list.c, tmux-1.3/server-client.c, tmux-1.3/cmd-kill-pane.c, tmux-1.3/cmd-select-layout.c, tmux-1.3/cmd-join-pane.c, tmux-1.3/osdep-linux.c, tmux-1.3/cmd-choose-client.c, tmux-1.3/window-clock.c, tmux-1.3/layout-string.c, tmux-1.3/cmd-pipe-pane.c, tmux-1.3/cmd-rotate-window.c, tmux-1.3/osdep-unknown.c, tmux-1.3/cmd-break-pane.c, tmux-1.3/osdep-openbsd.c, tmux-1.3/layout-set.c, tmux-1.3/names.c, tmux-1.3/cmd-clear-history.c, tmux-1.3/cmd-find-window.c, tmux-1.3/environ.c, tmux-1.3/signal.c, tmux-1.3/cmd-confirm-before.c, tmux-1.3/cmd-display-message.c, tmux-1.3/cmd-copy-buffer.c, tmux-1.3/cmd-save-buffer.c, tmux-1.3/cmd-load-buffer.c, tmux-1.3/compat/asprintf.c, tmux-1.3/array.h, tmux-1.3/cmd-capture-pane.c, tmux-1.3/compat/setenv.c, tmux-1.3/osdep-sunos.c, tmux-1.3/xmalloc.c, tmux-1.3/cmd-source-file.c, tmux-1.3/layout-custom.c, tmux-1.3/cmd-choose-buffer.c, tmux-1.3/cmd-bind-key.c, tmux-1.3/key-bindings.c, tmux-1.3/server-fn.c, tmux-1.3/status.c, tmux-1.3/key-string.c, tmux-1.3/tmux.h, tmux-1.3/cmd-set-buffer.c, tmux-1.3/client.c, tmux-1.3/cmd-has-session.c, tmux-1.3/window-copy.c, tmux-1.3/cmd-list-sessions.c, tmux-1.3/cmd-detach-client.c, tmux-1.3/cmd-show-options.c, tmux-1.3/cmd-copy-mode.c, tmux-1.3/tty.c, tmux-1.3/cmd-list-windows.c, tmux-1.3/cmd-list-buffers.c, tmux-1.3/cmd-kill-server.c, tmux-1.3/cmd-set-option.c, tmux-1.3/cmd-new-session.c, tmux-1.3/cmd-refresh-client.c, tmux-1.3/cmd-list-keys.c, tmux-1.3/cmd.c, tmux-1.3/input.c, tmux-1.3/cmd-start-server.c, tmux-1.3/cmd-rename-session.c, tmux-1.3/server.c, tmux-1.3/window.c, tmux-1.3/cmd-switch-client.c, tmux-1.3/cmd-swap-window.c, tmux-1.3/screen.c, tmux-1.3/tmux.c, tmux-1.3/cmd-list-commands.c, tmux-1.3/cmd-last-window.c, tmux-1.3/log.c, tmux-1.3/paste.c, tmux-1.3/cmd-delete-buffer.c, tmux-1.3/cmd-send-prefix.c, tmux-1.3/cmd-kill-session.c, tmux-1.3/cmd-unlink-window.c, tmux-1.3/cmd-rename-window.c, tmux-1.3/input-keys.c, tmux-1.3/cmd-list-clients.c, tmux-1.3/cmd-new-window.c, tmux-1.3/session.c, tmux-1.3/resize.c, tmux-1.3/cmd-link-window.c, tmux-1.3/cmd-select-window.c, tmux-1.3/cmd-unbind-key.c, tmux-1.3/cmd-paste-buffer.c, tmux-1.3/tty-keys.c, tmux-1.3/compat.h, tmux-1.3/cmd-previous-window.c, tmux-1.3/cmd-kill-window.c, tmux-1.3/screen-redraw.c, tmux-1.3/cmd-attach-session.c, tmux-1.3/cmd-next-window.c, tmux-1.3/screen-write.c, tmux-1.3/cmd-show-buffer.c:
+ Copyright (c) 2009 Tiago Cunha <[email protected]>
+ Copyright (c) 2009 Nicholas Marriott <[email protected]>
+
+ Copyright (c) 2008 Nicholas Marriott <[email protected]>
+
+ Copyright (c) 2009 Joshua Elsasser <[email protected]>
+
+ Copyright (c) 2009 Nicholas Marriott <[email protected]>
+
+ Copyright (c) 2007 Nicholas Marriott <[email protected]>
+ Copyright (c) 2010 Romain Francoise <[email protected]>
+
+
+ Copyright (c) 2006 Nicholas Marriott <[email protected]>
+
+ Copyright (c) 2009 Jonathan Alvarado <[email protected]>
+
+ Copyright (c) 2010 Dagobert Michelsen
+ Copyright (c) 2010 Nicholas Marriott <[email protected]>
+
+ Copyright (c) 2009 Todd Carson <[email protected]>
+
+ Copyright (c) 2004 Nicholas Marriott <[email protected]>
+
+ Copyright (c) 2008 Tiago Cunha <[email protected]>
+
+
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
+ IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
+
+--------------------------------------------------------------------
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/template.spec	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,54 @@
+#
+# spec file for package: [pkg name]
+#
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# includes module(s): [pkg module(s)]
+#
+
+%define owner [owner]
+
+%include Solaris.inc
+%include oi-extra.inc
+
+Name:           [pkg name]
+Summary:        [short description]
+Version:        [pkg version]
+License:        [license type (ie. GPLv2, BSD...)]
+Url:            [url to open source project]
+Source:         [url to compressed tarball]
+Group:          [ips pkg classification]
+Distribution:   OpenIndiana
+Vendor:         OpenIndiana
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+SUNW_Basedir:   %{_basedir}
+SUNW_Copyright: %{name}.copyright
+
+%include default-depend.inc
+
+# OpenSolaris IPS Package Manifest Fields
+Meta(info.upstream):            [name email of open source project leader]
+Meta(info.maintainer):          [name email of ips pkg porter/maintainer]
+Meta(info.repository_url):      [open source code repository]
+
+%description
+[long description]
+
+%prep
+[pre-build commands]
+
+%build
+[build commands]
+
+%install
+[install commands]
+
+%clean
+[cleanup commands]
+
+%files
+[file groups and permissions]
+
+%changelog
+[change log entries]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/Solaris.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,181 @@
+#
+# Macro definitions for Solaris packages
+#
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+%include prod-oie.inc
+%include options.inc
+
+SUNW_Pkg_AllZones:         false
+SUNW_Pkg_Hollow:           false
+SUNW_Pkg_ThisZone:         false
+
+# Set to 1 if $CC includes "gcc" (gcc4, parfait-gcc, etc.), otherwise 0
+%define cc_is_gcc %(basename "$CC" | grep -c gcc)
+
+%define is_nevada %(test `uname -r` = 5.11 && echo 1 || echo 0)
+%define is_s10    %(test `uname -r` = 5.10 && echo 1 || echo 0)
+%define _patch_options --fuzz=0 --unified
+
+SUNW_Category:             %{default_category}
+SUNW_HotLine:              Please contact your local service provider
+SUNW_MaxInst:              1000
+SUNW_Rev:		   110.0.4.%(date +%Y.%m.%d.%H.%M)
+# no such file so this will break the build if the package
+# does not specify a copyright file:
+SUNW_Copyright:            error-no-copyright
+
+%define _libexecdir        %{_prefix}/lib
+%define _mandir		   %{_datadir}/man
+
+# by default we don't build optimised versions
+%define opt_sparcv9 0
+%define opt_amd64   0
+%define opt_sse2    0
+# opt_arch64 means opt_sparcv9 or opt_amd64
+%define opt_arch64  0
+# can_isaexec gets redefined to 1 if multiple isas are built
+%define can_isaexec 0
+%ifarch sparc
+%define base_isa sparcv7
+%define base_arch sparc
+%else
+%define base_isa i86
+%define base_arch i386
+%endif
+
+%if %option_with_gnu_iconv
+%define arch_ldadd -Wl,-zignore -R/usr/gnu/lib -lgnuintl -lgnuiconv
+%else
+%define arch_ldadd
+%endif
+%define ldadd
+
+%if %debug_build
+%define _ldflags           %arch_ldadd %ldadd ${EXTRA_LDFLAGS}
+%else
+%define _ldflags           %arch_ldadd %ldadd -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect ${EXTRA_LDFLAGS}
+%endif
+
+%define gcc_picflags -fPIC -DPIC
+%define suncc_picflags -KPIC
+
+# ifarch doesn't support checking for sse2
+# this macros allows you to use %if %arch_sse2 instead
+%define arch_sse2 %(isainfo -x | grep sse2 > /dev/null && echo 1 || echo 0)
+
+# temporary, until all spec files are converted to the new multi-isa build
+# technique
+%ifarch amd64 sparcv9
+%include arch64.inc
+%endif
+
+%include base.inc
+
+%define _basedir           /usr
+%define _subdir            
+%define _prefix		   %{_basedir}
+%define _sysconfdir	   /etc
+%define _localstatedir	   /var
+%define _localedir	   %{_datadir}/locale
+%define _pkg_config_path   %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
+
+%define classification_prefix  org.opensolaris.category.2008
+
+# ChangeLog:
+# 2010-06-04  Alan Coopersmith <[email protected]>
+# - Make cc_is_gcc work with names like gcc-4.3.3 and parfait-gcc
+# 2010-04-24  Dave Lin <[email protected]>
+# - Add macro ips_classification_prefix
+# 2009-12-30  Halton Huo <[email protected]>
+# - Remove cc_is_ssxx macros since we use ss12 always
+# 2008-10-29  Laszlo (Laca) Peter  <[email protected]>
+# - respect $CC when checking compiler version
+# 2008-04-18  Laszlo (Laca) Peter  <[email protected]>
+# - set default copyright to "error-no-copyright" which is not the name
+#   of a file, so it will break the build if a package has no copyright file
+# 2008-03-30  Laszlo (Laca) Peter  <[email protected]>
+# - define cc_is_ss11 and cc_is_ss12
+# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
+# - copy arch_ldadd definition from base.inc
+# 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
+# - move configurable build options to options.inc and include
+#   options.inc
+# 2007-04-05  Laszlo (Laca) Peter  <[email protected]>
+# - fix _ldflags so that it includes the architecture specific flags
+# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
+# - move product specific tags and macros to prod.inc
+# - define can_isaexec, base_isa, base_arch
+# - define arch_sse2
+# - move 32-bit compiler flags to base.inc and include base.inc
+# - move 64-bit compiler flags to arch64.inc and include it temporarily,
+#   but it will not be needed once all spec files that build 64-bit are
+#   rewritten to the new style
+# 2007-01-28  Laszlo Peter  <[email protected]>
+# - define %is_s10
+# 2006-12-06  Damien Carbery  <[email protected]>
+# - Bump SUNW_ProdVers and default_pkg_version to 2.17.3.
+# 2006-11-23  Damien Carbery  <[email protected]>
+# - Bump SUNW_ProdVers and default_pkg_version to 2.17.1.
+# 2006-11-03  Laszlo Peter  <[email protected]>
+# - define %gtk_doc_option, lets the user disable building gtk-docs
+#   using --without-gtk-doc; also added comments about usage
+# 2006-10-03  Laszlo Peter  <[email protected]>
+# - define %_patch_options, this specifies extra options for gpatch when
+#   using pkgbuild 1.1.1 or later
+# 2006-10-03  Damien Carbery <[email protected]>
+# - Bump SUNW_ProdVers and default_pkg_version to 2.16.1.
+# 2006-09-18  Laszlo Peter  <[email protected]>
+# - define cxx_optflags64
+# 2006-08-23  Laszlo Peter  <[email protected]>
+# - define _localstatedir
+# 2006-06-02  Laszlo Peter  <[email protected]>
+# - add the date string back into REV
+# 2005-11-28  Laszlo Peter  <[email protected]>
+# - add -z combreloc and -Bdirect to the LDFLAGS
+# 2005-10-23  Laszlo Peter  <[email protected]>
+# - define debug_build (if --with-debug is used) and build_l10n
+#   (when --with-l10n is used)  build_l10n will disable building
+#   the l10n packages but needs changes in the spec files to work;
+#   debug_build is already functional: replaces the optimisation flags
+#   with -g and disables stripping the binaries. (Yay!)
+# 2005-10-14  Laszlo Peter  <[email protected]>
+# - define _ldflags
+# 2005-09-19  Laszlo Peter  <[email protected]>
+# - add -xregs=no%frameptr (Sun CC) or -fomit-frame-pointers (gcc)
+#   flags to enable dtrace get stack traces
+# 2005-09-17  Laszlo Peter  <[email protected]>
+# - define %picflags and add them to the gcc CFLAGS otherwise most things
+#   seem to break
+# 2005-09-16  Laszlo Peter  <[email protected]>
+# - define cc_is_gcc and define gcc specific compiler flags
+# 2005-09-15  Brian Cameron  <[email protected]>
+# - Backout debug lines I accidently committed to this file.
+# 2005-07-14  Laszlo Peter  <[email protected]>
+# - update product version to 2.10
+# 2004-11-01  Laszlo Peter  <[email protected]>
+# - temporarily removed -O for amd64 to stop gtk-demo crashing
+# 2004-10-13  Laszlo Peter  <[email protected]>
+# - defined _pkg_config_path64
+# 2004-10-02  Laszlo Peter  <[email protected]>
+# - defined jds_version
+# 2004-10-02  Joseph Townsend <[email protected]>
+# - Create 64bit libraries for Solaris
+# 2004-08-12  Shirley Woo  <[email protected]>
+# - Updated SUNW_Category for G2.6 packages to 2.6.0
+# 2004-07-23  Laszlo Peter  <[email protected]>
+# - Changed default copyright notice to default-copyright.txt
+# - Prefixed REV with 9.7.2
+# 2004-06-26  Shirley Woo  <[email protected]>
+# - Changed install location to /usr/...
+# 2004-06-21  Laszlo Peter  <[email protected]>
+# - descrease C++ optimisation level to xO3
+# - define _pkg_config_path
+# 2004-05-03  Laszlo Peter  <[email protected]>
+# - define _basedir
+# 2004-04-14  Laszlo Peter  <[email protected]>
+# - change CATEGORY to GNOME2,application,JDS3
+# 2004-02-28  Laszlo Peter  <[email protected]>
+# - add -mr and -xtrconst options, -xpentium on intel.
+# - define cxx_optflags for CC compilation
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/arch64.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,115 @@
+#
+# 64-bit platform settings for Solaris packages
+#
+# Copyright 2007 Sun Microsystems, Inc.
+#
+# Solaris.inc must be included before this file
+
+%ifarch amd64 sparcv9
+
+%ifarch amd64
+%define _arch64 amd64
+%else
+%define _arch64 sparcv9
+%endif
+
+%define opt_sse2 0
+%define opt_arch64 1
+%define can_isaexec 1
+%define gtk_doc_option --disable-gtk-doc
+
+%if %option_with_gnu_iconv
+%define arch_ldadd -L%{_libdir} -R%{_libdir} -Wl,-zignore -R/usr/gnu/lib/%{_arch64} -lgnuintl -lgnuiconv
+%else
+%define arch_ldadd -L%{_libdir} -R%{_libdir}
+%endif
+
+%ifarch amd64
+%define opt_amd64 1
+%define bld_arch	"amd64"
+%else
+%define opt_sparcv9 1
+%define bld_arch	"sparcv9"
+%endif
+
+%if %debug_build
+%define pkgbuild_postprocess /bin/true
+%define _cc64_opt_level      -g
+%define _cxx64_opt_level     -g
+%define _gcc64_opt_level      -g
+%define _gxx64_opt_level     -g
+%else
+%define _gcc64_opt_level      -O3
+%define _gxx64_opt_level     -O3
+%define _cc64_opt_level      -xO4 -xspace
+%define _cxx64_opt_level     -xO3 -xspace
+%endif
+
+%ifarch sparc
+%define gcc_optflags64           %_gcc64_opt_level -mcpu=ultrasparc -m64 -Xlinker -i %gcc_picflags
+%define gcc_cxx_optflags64       %gcc_optflags64
+%endif
+
+%ifarch i386
+%define gcc_optflags64           %_gcc64_opt_level -march=opteron -m64 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
+%define gcc_cxx_optflags64       %gcc_optflags64
+%endif
+
+%ifarch sparc
+%define suncc_optflags64           -i %_cc64_opt_level -xstrconst -xarch=v9 -xcode=pic32 -mr
+%define suncc_cxx_optflags64       -i %_cxx64_opt_level -xarch=v9 -xcode=pic32 -mr -norunpath
+%endif
+
+%ifarch i386
+%define suncc_optflags64           -i %_cc64_opt_level -xstrconst -m64 -Kpic -xregs=no%%frameptr
+%define suncc_cxx_optflags64       -i %_cxx64_opt_level -xarch=generic64 -Kpic -pentium -mr -norunpath -xregs=no%%frameptr
+%endif
+
+%if %cc_is_gcc
+
+%define picflags %gcc_picflags
+%define optflags64 %gcc_optflags64
+%define cxx_optflags64 %gcc_cxx_optflags64
+
+%else
+# cc is not gcc
+
+%define picflags %suncc_picflags
+%define optflags64 %suncc_optflags64
+%define cxx_optflags64 %suncc_cxx_optflags64
+
+%endif
+
+%define optflags %optflags64 ${EXTRA_CFLAGS}
+%define gcc_optflags %gcc_optflags64 ${EXTRA_CFLAGS}
+%define cxx_optflags %cxx_optflags64 ${EXTRA_CXXFLAGS}
+%define gcc_cxx_optflags %gcc_cxx_optflags64 ${EXTRA_CXXFLAGS}
+
+%define _bindir		 %{_prefix}/bin/%{bld_arch}
+%define _libdir		 %{_prefix}/lib/%{bld_arch}
+%define _libexecdir	 %{_prefix}/lib/%{bld_arch}
+%define _pkg_config_path %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
+# obsolete, don't use:
+%define _pkg_config_path64 %{_prefix}/lib/%{_arch64}/pkgconfig:%{_datadir}/pkgconfig
+
+%endif
+
+# ChangeLog:
+# 2009-12-30  Halton Huo <[email protected]>
+# - Remove cc_is_ssxx macros since we use ss12 always
+# 2008-06-20  Laszlo (Laca) Peter  <[email protected]>
+# - always define gcc_* macros, not only when cc_is_gcc, useful in spec
+#   files that force using gcc
+# 2008-03-30  Laszlo (Laca) Peter  <[email protected]>
+# - use -m64 with ss12
+# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
+# - add /usr/gnu/lib/%{_arch64} to RPATH and link with GNU libintl and libiconv
+#   when building with the --with-gnu-iconv option
+# 2007-03-20  Doug Scott <[email protected]>
+# - Added %_cc64_opt_level to suncc_optflags64 for i386
+# 2007-03-19  Doug Scott <[email protected]>
+# - Fixed -fno-omit-frame-pointer flag
+# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
+# - renamed from amd64.inc
+# - updated to work for either amd64 or sparcv9
+# 2007-03-12  Doug Scott  <[email protected]>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/base.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,105 @@
+#
+# Base (32-bit) platform settings for Solaris packages
+#
+# Copyright 2007 Sun Microsystems, Inc.
+#
+# Solaris.inc must be included before this file
+
+%ifarch sparc
+%define bld_arch        "sparc"
+%else
+%define bld_arch	"i386"
+%endif
+
+%define opt_arch64 0
+%define opt_sparcv9 0
+%define opt_amd64 0
+%define opt_sse2 0
+
+# use --without-gtk-doc to disable building gtk-docs (it takes quite
+# a while to build them)
+# default: build gtk-doc API docs
+%define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc}
+
+%if %option_with_gnu_iconv
+%define arch_ldadd -Wl,-zignore -R/usr/gnu/lib -lgnuintl -lgnuiconv
+%else
+%define arch_ldadd
+%endif
+
+%if %debug_build
+%define pkgbuild_postprocess /bin/true
+%define _cc_opt_level      -g
+%define _cxx_opt_level     -g
+%define _gcc_opt_level     -g
+%define _gxx_opt_level     -g
+%else
+%define _gcc_opt_level     -O3
+%define _gxx_opt_level     -O3
+%define _cc_opt_level      -xO4 -xspace
+%define _cxx_opt_level     -xO3 -xspace
+%endif
+
+%ifarch sparc
+%define gcc_optflags           %_gcc_opt_level -mv8plus -Xlinker -i %gcc_picflags
+%define gcc_cxx_optflags       %_gxx_opt_level -mv8plus -Xlinker -i %gcc_picflags
+%endif
+
+%ifarch i386
+%define gcc_optflags           %_gcc_opt_level -march=i586 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
+%define gcc_cxx_optflags       %_gxx_opt_level -march=i586 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
+%endif
+
+%ifarch sparc
+%define suncc_optflags           -i %_cc_opt_level -xstrconst -xarch=v8a -mr -xmemalign=4i
+%define suncc_cxx_optflags       -i %_cxx_opt_level -xarch=v8a -mr -norunpath -compat=5
+%endif
+
+%ifarch i386
+%define suncc_optflags           -i %_cc_opt_level -xstrconst -xpentium -mr -xregs=no%%frameptr
+%define suncc_cxx_optflags       -i %_cxx_opt_level -pentium -mr -norunpath -xregs=no%%frameptr -compat=5
+%endif
+
+%if %cc_is_gcc
+
+%define picflags %gcc_picflags
+%define optflags %gcc_optflags
+%define cxx_optflags %gcc_cxx_optflags
+
+%else
+# cc is not gcc
+
+%define picflags %suncc_picflags
+%define optflags %suncc_optflags ${EXTRA_CFLAGS}
+%define cxx_optflags %suncc_cxx_optflags ${EXTRA_CXXFLAGS}
+
+%endif
+
+%define _bindir		 %{_prefix}/bin
+%define _libdir		 %{_prefix}/lib
+%define _libexecdir	 %{_prefix}/lib
+%define _pkg_config_path %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
+%define _sysconfdir      /etc
+
+# ChangeLog:
+# 2008-09-13  Laszlo (Laca) Peter  <[email protected]>
+# - add -compat=5 option to Sun Studio CXXFLAGS as required by PSARC/2002/348
+# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
+# - add /usr/gnu/lib to the RUNPATH and link with GNU libintl and libiconv
+#   when building with the --with-gnu-iconv option
+# 2007-08-09  Laszlo (Laca) Peter  <[email protected]>
+# - delete cc_is_gcc conditional when setting _gcc_opt_level,
+#   because we want this set anyway so it can be used in spec
+#   files that force gcc
+# 2007-05-17  Laszlo (Laca) Peter  <[email protected]>
+# - add -xmemalign=4i for sparc builds for binary compatibility with
+#   apps compiled with earlier versions of Sun Studio, fixes 6457446
+# 2007-04-05  Laszlo (Laca) Peter  <[email protected]>
+# - fix cxx_optflags: use EXTRA_CXXFLAGS and not EXTRA_LDFLAGS
+# 2007-03-19  Doug Scott <[email protected]>
+# - Fixed -fno-omit-frame-pointer flag
+# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
+# - copied from x86_sse2.inc
+# - new include file that resets macros to their default (32-bit build)
+#   values
+# 2007-03-12  Doug Scott  <[email protected]>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/default-depend.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,11 @@
+#
+# Default system dependencies for GNOME packages on Solaris
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+#
+Requires: SUNWcar
+Requires: SUNWkvm
+Requires: SUNWcsr
+Requires: SUNWcsu
+Requires: SUNWcsd
+Requires: SUNWcsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/desktop-database-install.script	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,3 @@
+( echo 'test -x /usr/bin/update-desktop-database || exit 0';
+  echo '/usr/bin/update-desktop-database'
+) | $BASEDIR/lib/postrun -b -u -c JDS_wait
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/desktop-database-uninstall.script	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,3 @@
+( echo 'test -x /usr/bin/update-desktop-database || exit 0';
+  echo '/usr/bin/update-desktop-database'
+) | $BASEDIR/lib/postrun -b -u -c JDS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/gconf-install.script	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,9 @@
+( echo 'test -x /usr/bin/gconftool-2 || {';
+  echo '  echo "ERROR: gconftool-2 not found"';
+  echo '  exit 1';
+  echo '}';
+  echo 'umask 0022';
+  echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
+  echo 'export GCONF_CONFIG_SOURCE';
+  echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas > /dev/null'
+) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/icon-cache.script	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,7 @@
+( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
+  echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
+  echo 'for dir in %{_datadir}/icons/*; do';
+  echo '  test -f "$dir/index.theme" && /usr/bin/gtk-update-icon-cache "$dir"';
+  echo 'done';
+  echo 'true'
+) | $BASEDIR/lib/postrun -u -t 5 -c JDS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/l10n.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,1 @@
+%define po_sun_version 0.1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/oi-extra.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,22 @@
+# paths for OpenIndiana Extra
+
+%define _basedir            /usr
+%define _subdir             oie
+%define _prefix             %{_basedir}/%{_subdir}
+%define _localstatedir      /var/%{_subdir}
+%define _sysconfdir         /etc/%{_subdir}
+
+%define _std_bindir         %{_basedir}/bin
+%define _std_datadir        %{_basedir}/share
+%define _std_includedir     %{_basedir}/include
+%define _std_libdir         %{_basedir}/lib
+%define _std_localstatedir  /var
+%define _std_sysconfdir     /etc
+
+%define _pkg_config_path_tmp %_pkg_config_path
+%define _pkg_config_path %{_pkg_config_path_tmp}:%{_std_libdir}/pkgconfig:%{_std_datadir}/pkgconfig
+# legacy, do not use
+%define _pkg_config_path64_tmp %_pkg_config_path64
+%define _pkg_config_path64 %{_pkg_config_path64_tmp}:%{_std_libdir}/%{_arch64}/pkgconfig
+
+%define _oie_include        -I%{_includedir}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/options.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,165 @@
+#
+# Macro definitions for optional features
+#
+
+#
+# Option: --with-l10n
+#
+# use --with-l10n to build the SUNWfoo-l10n packages
+# default: no l10n packages
+#
+%define option_with_l10n %{?_with_l10n:1}%{?!_with_l10n:0}
+%define option_without_l10n %{!?_with_l10n:1}%{?_with_l10n:0}
+
+# obsolete:
+%define build_l10n %option_with_l10n
+
+#
+# Option: --with-debug
+#
+# use --with-debug to build binaries with debug info (-g) and not to strip
+# them.
+# default: don't include debug info and strip the binaries (strip -x)
+#
+%define option_with_debug %{?_with_debug:1}%{?!_with_debug:0}
+%define option_without_debug %{!?_with_debug:1}%{?_with_debug:0}
+
+# obsolete:
+%define debug_build %option_with_debug
+
+#
+# Option: --without-gtk-doc
+#
+# use --without-gtk-doc to disable building gtk-docs (it takes quite
+# a while to build them)
+# default: build gtk-doc API docs
+#
+%define option_with_gtk_doc %{?!_without_gtk_doc:1}%{?_without_gtk_doc:0}
+%define option_without_gtk_doc %{?_without_gtk_doc:1}%{?!_without_gtk_doc:0}
+
+# macro to use as a configure option:
+%define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc}
+
+#
+# Option: --with-fox
+#
+# use --with-fox to build JDS with the FOX project's X packages
+# instead of the nevada X packages
+# default: nevada
+#
+%define option_with_fox %{?_with_fox:1}%{?!_with_fox:0}
+%define option_without_fox %{!?_with_fox:1}%{?_with_fox:0}
+
+#
+# Option: --with-gnu-iconv
+#
+# use --with-gnu-iconv to build JDS with the GNU libiconv and
+# libintl implementations instead of the nevada libc implementations
+# default: libc
+#
+%define option_with_gnu_iconv %{?_with_gnu_iconv:1}%{?!_with_gnu_iconv:0}
+%define option_without_gnu_iconv %{!?_with_gnu_iconv:1}%{?_with_gnu_iconv:0}
+
+#
+# Option: --without-java
+#
+# use --without-java exclude the Java bits from the build and packages
+# default: build java
+#
+%define option_with_java %{?!_without_java:1}%{?_without_java:0}
+%define option_without_java %{?_without_java:1}%{?!_without_java:0}
+
+#
+# Option: --without-dt
+#
+# use --without-dt to remove dependency on /usr/dt "stuff" like dtlogin
+# default: depend on /usr/dt
+#
+%define option_with_dt %{?!_without_dt:1}%{?_without_dt:0}
+%define option_without_dt %{?_without_dt:1}%{?!_without_dt:0}
+
+#
+# Option: --with-sun-branding
+#
+# use --with-sun-branding to build JDS with Sun Solaris branding
+# default: no Sun branding
+#
+%define option_with_sun_branding %{?_with_sun_branding:1}%{?!_with_sun_branding:0}
+%define option_without_sun_branding %{!?_with_sun_branding:1}%{?_with_sun_branding:0}
+
+#
+# Option: --with-indiana-branding
+#
+# use --with-indiana-branding to build JDS with Indiana Solaris branding
+# default: no Indiana branding
+#
+%define option_with_indiana_branding %{?_with_indiana_branding:1}%{?!_with_indiana_branding:0}
+%define option_without_indiana_branding %{!?_with_indiana_branding:1}%{?_with_indiana_branding:0}
+
+#
+# Option: --with-openindiana-branding
+#
+# use --with-openindiana-branding to build JDS with OpenIndiana branding
+# default: no OpenIndiana branding
+#
+%define option_with_openindiana_branding %{?_with_openindiana_branding:1}%{?!_with_openindiana_branding:0}
+%define option_without_openindiana_branding %{!?_with_openindiana_branding:1}%{?_with_openindiana_branding:0}
+
+%if %option_with_sun_branding
+%if %option_with_indiana_branding
+%error You cannot enable both Sun Solaris and Indiana branding
+%endif
+%if %option_with_openindiana_branding
+%error You cannot enable both Sun Solaris and OpenIndiana branding
+%endif
+%endif
+
+%if %option_with_indiana_branding
+%if %option_with_openindiana_branding
+%error You cannot enable both Indiana and OpenIndiana branding
+%endif
+%endif
+
+#
+# Option: --without-blueprint
+#
+# use --without-blueprint if you do not with to include the blueprint theme
+# default: include blueprint
+#
+%define option_with_blueprint %{?!_without_blueprint:1}%{?_without_blueprint:0}
+%define option_without_blueprint %{?_without_blueprint:1}%{?!_without_blueprint:0}
+
+#
+# Option: --without-apoc-adapter
+#
+# use --with-apoc-adapter to enable apoc adapter for SUNWfirefox
+# default: not build apoc adapter
+%define option_with_apoc_adapter %{?_with_apoc_adapter:1}%{?!_with_apoc_adapter:0}
+%define option_without_apoc_adapter %{!?_with_apoc_adapter:1}%{?_with_apoc_adapter:0}
+
+#
+# Option: --with-moz-nss-nspr
+#
+# use --with-moz-nss-nspr to deliver Mozilla bundled nss, nspr libs
+# for SUNWfirefox
+# default: without Mozilla bundled nss, nspr libs
+%define option_without_moz_nss_nspr %{?!_with_moz_nss_nspr:1}%{?_with_moz_nss_nspr:0}
+
+#
+# Option: --without-lightning
+#
+# use --without-lightning to disable building lightning for SUNWthunderbird
+# default: build lightning
+%define option_with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
+
+# ChangeLog:
+# 2009-05-25  - [email protected]
+# - add option --without-lightning
+# 2009-05-21  - [email protected]
+# - add option --without-apoc-adapter, --with-moz-nss-nspr
+# 2009-03-23  - [email protected]
+# - remove option --with-ff3
+# 2008-05-22  - [email protected]
+# - add option --with-ff3 
+# 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
+# - create
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/prod-oie.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,10 @@
+SUNW_ProdName:      OpenIndiana Extra
+SUNW_ProdVers:      1.0
+Vendor:             OpenIndiana
+
+%define pkg_prefix OI
+%define restart_fmri $BASEDIR/share/desktop-cache/restart_fmri
+%define default_category OIE,application
+%{?sf_download:#%}%define sf_download http://downloads.sourceforge.net
+%{?support_level:#%}%define support_level unsupported
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/prod-oim.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,10 @@
+SUNW_ProdName:      OpenIndiana Main
+SUNW_ProdVers:      1.0
+Vendor:             OpenIndiana
+
+%define pkg_prefix OI
+%define default_category OIM,application
+%define restart_fmri $BASEDIR/share/desktop-cache/restart_fmri
+%{?sf_download:#%}%define sf_download http://downloads.sourceforge.net
+%{?support_level:#%}%define support_level unsupported
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/prod.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,32 @@
+#
+# Default settings for GNOME packages on Solaris
+#
+# Copyright 2009 Sun Microsystems, Inc.
+#
+SUNW_ProdName:             GNOME
+SUNW_ProdVers:             2.30.0
+
+%define default_pkg_version 2.30.0
+%define default_python_version 2.6
+
+%{?sf_download:#}%define sf_download http://downloads.sourceforge.net
+
+%{?jds_version:#}%define jds_version JDSoi
+%define default_category   GNOME2,application,%{jds_version}
+%{?support_level:#}%define support_level      unsupported
+
+Vendor:			   Sun Microsystems, Inc.
+
+%define                    pkg_prefix SUNW
+
+%define                    restart_fmri $BASEDIR/share/desktop-cache/restart_fmri
+
+# ChangeLog:
+# 2009-10-08  Laszlo (Laca) Peter  <[email protected]>
+# - define default_python_version
+# 2009-04-03  Laszlo (Laca) Peter  <[email protected]>
+# - define restart_fmri
+# 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
+# - move tjds build option to options.inc
+# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
+# - create by moving product specific stuff out of Solaris.inc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/scrollkeeper-update.script	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,3 @@
+( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
+  echo '/usr/bin/scrollkeeper-update'
+) | $BASEDIR/lib/postrun -b -u -c JDS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/usr-gnu.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,15 @@
+%define _basedir           /usr
+%define _subdir            gnu
+%define _prefix		   %{_basedir}/%{_subdir}
+%define _std_bindir        %{_basedir}/bin
+%define _sysconfdir	   /etc/%{_subdir}
+%define _std_sysconfdir    /etc
+%define _localedir	   %{_libdir}/locale
+%define _localstatedir     /var/%{_subdir}
+%define _std_localstatedir /var
+%define _pkg_config_path   %{_libdir}/pkgconfig
+%define _pkg_config_path64 %{_libdir}/%{_arch64}/pkgconfig
+%define _std_datadir       %{_basedir}/share
+%define _infodir           %{_std_datadir}/info
+%define _std_includedir    %{_basedir}/include
+%define _std_libdir        %{_basedir}/lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/x86_sse2.inc	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,77 @@
+#
+# Intel SSE2 ISA settings for Solaris packages
+#
+# Copyright 2007 Sun Microsystems, Inc.
+#
+# Solaris.inc must be included before this file
+
+%define bld_arch	pentium_pro+mmx
+%define sse2_arch       pentium_pro+mmx
+
+%define opt_arch64 0
+%define opt_sparcv9 0
+%define opt_amd64 0
+%define opt_sse2 1
+%define can_isaexec 1
+%define gtk_doc_option --disable-gtk-doc
+
+%if %option_with_gnu_iconv
+%define arch_ldadd           -Wl,-zignore -lgnuintl -lgnuiconv -xarch=sse2 -L%{_libdir} -R%{_libdir} -R/usr/gnu/lib
+%else
+%define arch_ldadd           -xarch=sse2 -L%{_libdir} -R%{_libdir}
+%endif
+
+%if %debug_build
+%define pkgbuild_postprocess /bin/true
+%define _cc_opt_level      -g
+%define _cxx_opt_level     -g
+%define _gcc_opt_level     -g
+%define _gxx_opt_level     -g
+%else
+%if %cc_is_gcc
+%define _gcc_opt_level     -O3
+%define _gxx_opt_level     -O3
+%else
+%define _cc_opt_level      -xO4 -xspace -xvector
+%define _cxx_opt_level     -xO3 -xspace -xvector
+%endif
+%endif
+
+%define gcc_optflags           %_gcc_opt_level -mcpu=pentiumpro -mtune=pentiumpro -msse2 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
+%define gcc_cxx_optflags       %_gxx_opt_level -mcpu=pentiumpro -mtune=pentiumpro -msse2 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
+
+%define suncc_optflags           -i %_cc_opt_level -xstrconst -xarch=sse2 -mr -xregs=no%%frameptr
+%define suncc_cxx_optflags       -i %_cxx_opt_level -xarch=sse2 -mr -norunpath -xregs=no%%frameptr
+
+%if %cc_is_gcc
+
+%define picflags %gcc_picflags
+%define optflags %gcc_optflags
+%define cxx_optflags %gcc_cxx_optflags
+
+%else
+# cc is not gcc
+
+%define picflags %suncc_picflags
+%define optflags %suncc_optflags ${EXTRA_CFLAGS}
+%define cxx_optflags %suncc_cxx_optflags ${EXTRA_CXXFLAGS}
+
+%endif
+
+%define _bindir		 %{_prefix}/bin/%{bld_arch}
+%define _libdir		 %{_prefix}/lib/%{bld_arch}
+%define _libexecdir	 %{_prefix}/lib/%{bld_arch}
+%define _pkg_config_path %{_libdir}/%{bld_arch}/pkgconfig
+
+# ChangeLog:
+# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
+# - add /usr/gnu/lib to the RUNPATH and link with GNU libintl and libiconv
+#   when building with the --with-gnu-iconv option
+# 2007-04-16  Laszlo (Laca) Peter  <[email protected]>
+# - move -xvector the optimized flags as it required -xO3 or higher
+#   so it wouldn't break debug builds
+# 2007-03-19  Doug Scott <[email protected]>
+# - Fixed -fno-omit-frame-pointer flag
+# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
+# - define suncc_optflags, suncc_cxx_optflags, gcc_optflags, gcc_cxx_optflags
+# 2007-03-12  Doug Scott <[email protected]>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/tmux-01-include-netdb.h.patch	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,13 @@
+diff -ur tmux-1.3.orig/screen.c tmux-1.3/screen.c
+--- tmux-1.3.orig/screen.c	2010-04-07 00:01:32.000000000 +0200
++++ tmux-1.3/screen.c	2010-10-21 21:39:15.000000000 +0200
+@@ -21,6 +21,9 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#ifdef __sun
++#include <netdb.h>
++#endif
+ 
+ #include "tmux.h"
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/copyright-extractor	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,733 @@
+#!/usr/perl5/bin/perl
+#
+# Script for extracting copyright and licensing information from source code
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License").  You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+
+use strict;
+use warnings;
+use Cwd;
+use Getopt::Long qw(:config gnu_compat no_auto_abbrev bundling pass_through);
+
+my $min_merge = 10;
+
+sub usage() {
+    print "copyright-extractor [options] <source directory>\n";
+    print "\n";
+    print "Options:\n";
+    print "  -r, --raw\n";
+    print "         Print raw comments only, do not attempt to merge,\n";
+    print "         only unify identical comments.\n";
+    print "  -c, --copyright-first\n";
+    print "         Attempt to move copyright statements to the start of the\n";
+    print "         comment block.\n";
+    print "         Note: when using this option, there is a chance that\n";
+    print "         lines get mixed up if a copyright statement extends to\n";
+    print "         more than one line.\n";
+    print "  -m n --min=n\n";
+    print "         only merge if there are at least n consecutive identical\n";
+    print "         lines.  default: $min_merge\n";
+    print "  -g, --gpl\n";
+    print "         Add the disclaimer about GPLv2 to the beginning of the\n";
+    print "         output if any of the comments look like GPL/LGPL\n";
+    print "  -O, --omitted\n";
+    print "         Print a list of files that were not checked\n";
+    print "  -h, --help\n";
+    print "         Print this usage information\n";
+    print "  -d n, --debug=n\n";
+    print "         Turn on debug output.\n";
+}
+
+my %blurbs;
+
+my $gpl_found = 0;
+
+my @files_omitted;
+my $debug = 0;
+my $dumb_mode = 0;
+my $copyright_first = 0;
+my $gpl_disclaimer = 0;
+my $print_omitted = 0;
+
+my @dirs;
+sub process_args {
+    my $arg = shift;
+    
+    if ($arg =~ /^-/) {
+	print "Unknown option: $arg\n";
+	print "Try --help for usage.\n";
+	exit (1);
+    }
+
+    push (@dirs, $arg);
+}
+
+sub process_options {
+    
+    Getopt::Long::Configure ("bundling");
+      
+    GetOptions ('d|debug=n' => sub { shift; $debug = shift; },
+		'm|min=n' => sub { shift; $min_merge = shift; },
+		'r|raw' => sub { $dumb_mode = 1; },
+		'c|copyright-first' => sub { $copyright_first = 1; },
+		'O|omitted' => sub { $print_omitted = 1; },
+		'g|gpl' => sub { $gpl_disclaimer = 1; },
+		'h|help' => sub { usage (); exit (0); },
+		'<>' => \&process_args);
+}
+
+use constant FTYPE_IGNORE => 0;
+use constant FTYPE_C => 1;
+use constant FTYPE_PERL => 2;
+use constant FTYPE_PYTHON => 3;
+use constant FTYPE_SHELL => 4;
+use constant FTYPE_JAVA => 5;
+
+# a very simple file type check based on the file name
+# fname: the file name to classify
+# Returns: one of the above contants
+sub get_file_type ($) {
+    my $fname = shift;
+
+    if ($fname =~ /([~]$|\/(ChangeLog|configure\.in|Makefile|ltmain\.sh|README|NEWS|INSTALL|HACKING|configure$|config\.)$)/) {
+	# some file names to ignore
+	push (@files_omitted, $fname);
+	return FTYPE_IGNORE;
+    } elsif ($fname =~ /\.(am|ac|o|lo|ps|la|cache|diff|out|log|guess|spec)$/) {
+	# some more file names to ignore
+	push (@files_omitted, $fname);
+	return FTYPE_IGNORE;
+    } elsif ($fname =~ /\.(c|h|hpp|cpp|C|CPP|cc|CC)$/) {
+	return FTYPE_C;
+    } elsif ($fname =~ /\.pl$/) {
+	return FTYPE_PERL;
+    } elsif ($fname =~ /\.py$/) {
+	return FTYPE_PYTHON;
+    } elsif ($fname =~ /\.(sh|ksh|csh)$/) {
+	return FTYPE_SHELL;
+    } elsif ($fname =~ /\.(java)$/) {
+	return FTYPE_JAVA;
+    } else {
+	# FIXME: could do something smart here
+	push (@files_omitted, $fname);
+	return FTYPE_IGNORE;
+    }
+}
+
+# return 1 if the string includes words that suggest that the string
+# is some sort of legal text.  If none of these words appear in the
+# string, this program will ignore it and assume that it's some other
+# comment that happens to be at the beginning of the file
+sub is_legalese ($) {
+    my $str = shift;
+    
+    $str = lc ($str);
+    if ($str =~ /(licen[cs]|legal|terms|condition|copyright|rights|\(c\)|copying|usage|binary|distribut|gpl)/) {
+	return 1;
+    }
+
+    return 0;
+}
+
+# extract the comments 
+sub extract_comments_shell($) {
+    my $fname = shift;
+
+    my $blurb;
+    my $line;
+    open SRCFILE, "<$fname" or die "failed to open file $fname";
+    while ($line = <SRCFILE>) {
+	chomp ($line);
+	next if $line =~ /^#!/;
+	last if $line =~ /^[^#]/;
+	$line =~ s/^#//;
+	# delete certain types of comments, like emacs mode spec, etc
+	$line =~ s/^\s*-\*-.*-\*-\s*$//;
+	$line =~ s/^\s\$Id:.*\$\s*$//;
+	$line =~ s/^\s*vim(:\S+=\S+)+\s*$//;
+
+	chomp ($line);
+
+	if (defined $blurb) {
+	    $blurb = $blurb . "\n" . $line;
+	} elsif ($line ne '') {
+	    $blurb = $line;
+	}
+	$line = undef;
+    }
+    close SRCFILE;
+
+    if (defined ($blurb) and is_legalese ($blurb)) {
+	$blurbs{$fname} = $blurb;
+    }
+}
+
+sub extract_comments_c($) {
+    my $fname = shift;
+
+    my $blurb;
+    my $in_comment_block = 0;
+    open SRCFILE, "<$fname" or die "failed to open file $fname";
+    my $line;
+    while ($line = <SRCFILE>) {
+	chomp ($line);
+	if ($in_comment_block) {
+	    if ($line =~ /\*\//) {
+		$line =~ s/\*\/.*//;
+		$in_comment_block = 0;
+	    } elsif ($line =~ /^\/\//) {
+		$line =~ s/^\/\///;
+	    } elsif ($line =~ /^( \*|\*)/) {
+		$line =~ s/^( \*|\*)//;
+	    }
+	} else {
+	    if ($line =~ /^\s*\/\*(.*)\*\//) {
+		$line =~ s/^\s*\/\*(.*)\*\//$1/g;
+	    } elsif ($line =~ /^\s*\/\*/) {
+		$in_comment_block = 1;
+		$line =~ s/^\s*\/\*//;
+	    } elsif ($line =~ /^\/\//) {
+		$line =~ s/^\s*\/\///;
+	    } elsif ($line eq '') {
+		# add to blurb if not the start of the blurb
+	    } else {
+		# end of comments, stop processing
+		last;
+	    }
+	}
+	# delete certain types of comments, like emacs mode spec, etc
+	$line =~ s/^\s*-\*-.*-\*-\s*$//;
+	$line =~ s/^\s*vim(:\S+=\S+)+\s*$//;
+	$line =~ s/^\s\$Id:.*\$\s*$//;
+	$line =~ s/^\s*\**\s*\\ingroup\s*.*$//;
+	$line =~ s/^\s*\**\s*\\file\s*.*$//;
+	$line =~ s/^\s*\**\s*\@-type\@\s*$//;
+
+	chomp ($line);
+
+	if (defined $blurb) {
+	    $blurb = $blurb . "\n" . $line;
+	} elsif ($line ne '') {
+	    $blurb = $line;
+	}
+	$line = undef;
+    }
+    close SRCFILE;
+    if (defined ($blurb) and is_legalese ($blurb)) {
+	$blurbs{$fname} = $blurb;
+    }
+}
+
+sub extract_comments_python($) {
+    my $fname = shift;
+
+    my $blurb;
+    my $in_comment_block = 0;
+    open SRCFILE, "<$fname" or die "failed to open file $fname";
+    my $line;
+    while ($line = <SRCFILE>) {
+	chomp ($line);
+	if ($in_comment_block) {
+	    if ($line =~ /"""/) {
+		$line =~ s/"""//;
+		$in_comment_block = 0;
+	    } elsif ($line =~ /#/) {
+		$line =~ s/^#//;
+	    }
+	} else {
+	    if ($line =~ /^\s*"""(.*)"""/) {
+		$line =~ s/^\s*"""(.*)"""/$1/g;
+	    } elsif ($line =~ /^\s*"""/) {
+		$in_comment_block = 1;
+		$line =~ s/^\s*"""//;
+	    } elsif ($line =~ /^\/\//) {
+		$line =~ s/^\s*"""//;
+	    } elsif ($line eq '') {
+		# add to blurb if not the start of the blurb
+	    } else {
+		# end of comments, stop processing
+		last;
+	    }
+	}
+	# delete certain types of comments, like emacs mode spec, etc
+	$line =~ s/^\s*-\*-.*-\*-\s*$//;
+	$line =~ s/^\s*vim(:\S+=\S+)+\s*$//;
+	$line =~ s/^\s\$Id:.*\$\s*$//;
+
+	chomp ($line);
+
+	if (defined $blurb) {
+	    $blurb = $blurb . "\n" . $line;
+	} elsif ($line ne '') {
+	    $blurb = $line;
+	}
+	$line = undef;
+    }
+    close SRCFILE;
+    if (defined ($blurb) and is_legalese ($blurb)) {
+	$blurbs{$fname} = $blurb;
+    }
+}
+
+sub extract_comments($);
+
+# process a directory or a file recursively: extract the comments
+# from the beginning of each file and save them in @blurbs
+sub extract_comments($) {
+    my $fname = shift;
+    if (-d $fname) {
+	# directory -> process recursively
+	opendir(DIR, $fname) || die("Cannot open directory $fname");
+	my @thefiles= readdir(DIR);
+	closedir(DIR);
+	foreach my $f (@thefiles) {
+	    next if $f eq '.';
+	    next if $f eq '..';
+	    next if $f eq '.libs';
+	    next if $f eq 'intl';
+	    extract_comments ("$fname/$f");
+	}
+    } elsif (-f $fname) {
+	# regular file -> identify file type and read comments
+	my $ftype = get_file_type ($fname);
+	return if $ftype == FTYPE_IGNORE;
+	if ($ftype == FTYPE_C) {
+	    extract_comments_c ($fname);
+	} elsif ($ftype == FTYPE_PERL) {
+	    extract_comments_shell ($fname);
+	} elsif ($ftype == FTYPE_SHELL) {
+	    extract_comments_shell ($fname);
+	} elsif ($ftype == FTYPE_PYTHON) {
+	    extract_comments_python ($fname);
+	} elsif ($ftype == FTYPE_JAVA) {
+	    extract_comments_c ($fname);
+	}
+    } else {
+	print STDERR "ERROR: $fname: no such file or directory\n";
+    }
+}
+
+# like uniq(1)
+sub uniq (@) {
+    my @list = @_;
+    my $prev;
+    if (not @list) {
+	return @list;
+    }
+    $prev = $list[0];
+    my @uniq_list = ($prev);
+    foreach my $str (@list) {
+	next if $str eq $prev;
+	push (@uniq_list, $str);
+	$prev = $str;
+    }
+    return @uniq_list;
+}
+
+# return the number of lines in str
+sub line_count ($) {
+    my $str = shift;
+
+    return ($str =~ tr/\n//) + 1;
+}
+
+# return 1 if str is a member of the list, 0 otherwise
+sub is_member ($@) {
+    my $str = shift;
+    my @list = @_;
+
+    foreach my $s (@list) {
+	if ($str eq $s) {
+	    return 1;
+	}
+    }
+    
+    return 0;
+}
+
+sub do_merge_comments ($$$$$);
+
+# Args: references to lists of strings (lines of the texts)
+#
+# ml1: lines from the first text already processed
+# l1:  remaining lines of the 1st text
+# nl1: remaining normalised lines of the 1st text
+# l2:  remaining lines of the 2nd text
+# nl2: remaining normalised lines of the 1st text
+#
+# Return: list of merged lines
+sub do_merge_comments ($$$$$) {
+    my $ml1_ref = shift;
+    my $l1_ref = shift;
+    my $nl1_ref = shift;
+    my $l2_ref = shift;
+    my $nl2_ref = shift;
+
+    my @mlines1 = @$ml1_ref;
+    my @nmlines1;
+    my @lines1 = @$l1_ref;
+    my @norm_lines1 = @$nl1_ref;
+    my @lines2 = @$l2_ref;
+    my @norm_lines2 = @$nl2_ref;
+    my @nmlines2;
+    my @mlines2;
+
+    my @merged_lines;
+    my $line1;
+    my $norm_line1;
+    my $line2;
+    my $norm_line2;
+
+    if ($debug > 2) {
+	print "DEBUG: attempting to merge\n";
+	if (@mlines1) {
+	    print "DEBUG: lines already processed from 1st text:\n";
+	    print "DEBUG: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";
+	    foreach my $l (@mlines1) {
+		print "DEBUG: $l\n";
+	    }
+	}
+	print "DEBUG: 1st text:\n";
+	print "DEBUG: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";
+	foreach my $l (@lines1) {
+	    print "DEBUG: $l\n";
+	}
+	print "DEBUG: 2nd text:\n";
+	print "DEBUG: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";
+	foreach my $l (@lines2) {
+	    print "DEBUG: $l\n";
+	}
+	print "DEBUG: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
+    }
+
+    if (not @lines1) {
+	push (@merged_lines, @mlines1);
+	push (@merged_lines, @lines2);
+	return @merged_lines;
+    }
+
+    if (not @lines2) {
+	push (@merged_lines, @mlines1);
+	push (@merged_lines, @lines1);
+	return @merged_lines;
+    }
+
+    # first save the lines only appearing in lines1,
+    # stop at the first 2 common lines that are not empty
+    while (@lines1) {
+	$line1 = shift (@lines1);
+	$norm_line1 = shift (@norm_lines1);
+	if (($norm_line1 ne '') and
+	    is_member ($norm_line1, @norm_lines2)) {
+	    last;
+	} else {
+	    push (@mlines1, $line1);
+	    push (@nmlines1, $norm_line1);
+	}
+    }
+    # now save the lines appearing in lines2 before the common line
+    while (@lines2) {
+	$line2 = shift (@lines2);
+	$norm_line2 = shift (@norm_lines2);
+
+	if ($norm_line2 ne $norm_line1) {
+	    push (@mlines2, $line2);
+	    push (@nmlines2, $line2);
+	} else {
+            last;
+        }
+    }
+    my @common_lines;
+    my @ncommon_lines;
+    # now save the first common line
+    if ($norm_line1 eq $norm_line2) {
+	if ($debug > 3) {
+	    print "DEBUG: 1st common line:\n";
+	    print "DEBUG: $line1\n";
+	}
+	@common_lines = ($line1);
+	@ncommon_lines = ($norm_line2);
+    } else {
+	# no common lines were found
+	# lines1 should be empty, all lines moved to mlines1
+	push (@merged_lines, @mlines1);
+	push (@merged_lines, @mlines2);
+	return @merged_lines;
+    }
+    # save all common lines
+    while (@lines1 and @lines2) {
+	$line1 = shift (@lines1);
+	$norm_line1 = shift (@norm_lines1);
+	$line2 = shift (@lines2);
+	$norm_line2 = shift (@norm_lines2);
+	if ($norm_line1 ne $norm_line2) {
+	    if ($debug > 3) {
+		print "DEBUG: no more common lines.\n";
+	    }
+	    unshift (@lines1, $line1);
+	    unshift (@norm_lines1, $norm_line1);
+	    unshift (@lines2, $line2);
+	    unshift (@norm_lines2, $norm_line2);
+	    last;
+	} else {
+	    if ($debug > 3) {
+		print "DEBUG: common line:\n";
+		print "DEBUG: $line1\n";
+	    }
+	    push (@common_lines, $line1);
+	    push (@ncommon_lines, $norm_line1);
+	}
+    }
+
+    # only merge if the number of common lines is at least $min_merge
+    # or we are at the end of one of the texts or if at the
+    # beginning of the 2nd text
+    if (($#common_lines >= $min_merge) or 
+	(not @lines1) or (not @lines2) or
+	(not @mlines2)) {
+	if ($debug > 1) {
+	    print "DEBUG: common lines:\n";
+	    foreach my $l (@common_lines) {
+		print "DEBUG: $l\n";
+	    }
+	    print "DEBUG: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n";
+	}
+	# first the lines from the 1st text
+	push (@merged_lines, @mlines1);
+	# then the lines from the 2nd text
+	push (@merged_lines, @mlines2);
+	# finally the common lines
+	push (@merged_lines, @common_lines);
+    } else {
+	# don't merge
+
+	# add the common lines to the processed part of the 1st text
+	push (@mlines1, @common_lines);
+
+	# add the common lines back to the unprocessed part of the 2nd text
+	unshift (@lines2, @common_lines);
+	# add the lines before the common lines back to the unprocessed
+	# part of the 2nd text
+	unshift (@lines2, @mlines2);
+	# add the normalised common lines back to
+	# the unprocessed part of the 2nd text
+	unshift (@norm_lines2, @ncommon_lines);
+	# add the normalised lines before the common lines back to
+        # the unprocessed part of the 2nd text
+	unshift (@norm_lines2, @nmlines2);
+
+	# add the normalised common lines back to 
+	# try to merge the rest of the texts
+	my @more_merged_lines = do_merge_comments (\@mlines1,
+	    \@lines1, \@norm_lines1, \@lines2, \@norm_lines2);
+	push (@merged_lines, @more_merged_lines);	
+	return @merged_lines;
+    }
+
+    if (not @lines1) {
+	push (@merged_lines, @lines2);
+    } elsif (not @lines2) {
+	push (@merged_lines, @lines1);
+    } else {
+	# repeat the process for the remaining lines
+	my @l1;
+	my @more_merged_lines = do_merge_comments (\@l1,
+	    \@lines1, \@norm_lines1, \@lines2, \@norm_lines2);
+	push (@merged_lines, @more_merged_lines);
+    }
+
+    return @merged_lines;
+}
+
+sub merge_comments ($$) {
+    my $str1 = shift;
+    my $str2 = shift;
+    my @lines1 = split /\n/, $str1;
+    my @lines2 = split /\n/, $str2;
+    my @norm_lines1;
+    my @norm_lines2;
+
+    foreach my $l0 (@lines1) {
+	# ignore whitespace differences
+	my $l1 = "$l0";
+	$l1 =~ s/\s+/ /g;
+	$l1 =~ s/^ //g;
+	chomp ($l1);
+	$l1 =~ s/ $//g;
+	$l1 = lc ($l1);
+	push (@norm_lines1, $l1);
+    }
+    foreach my $l0 (@lines2) {
+	# ignore whitespace differences
+	my $l2 = "$l0";
+	$l2 =~ s/\s+/ /g;
+	$l2 =~ s/^ //g;
+	chomp ($l2);
+	$l2 =~ s/ $//g;
+	$l2 = lc ($l2);
+	push (@norm_lines2, $l2);
+    }
+
+    my @l0;
+    my @merged_lines = do_merge_comments (\@l0, \@lines1, \@norm_lines1,
+					  \@lines2, \@norm_lines2);
+    my $merged_str;
+    if ($copyright_first) {
+	my @copyright_lines;
+	my @non_cr_lines;
+
+	foreach my $line (@merged_lines) {
+	    if ($line =~ /^\s*(copyright|\(c\)|©|author:|all rights reserved)/i) {
+		push (@copyright_lines, $line);
+	    } else {
+		push (@non_cr_lines, $line);
+	    }
+	}
+	@copyright_lines = sort (@copyright_lines);
+	@copyright_lines = uniq (@copyright_lines);
+	$merged_str = join ("\n", (@copyright_lines, @non_cr_lines));
+    } else {
+	$merged_str = join ("\n", @merged_lines);
+    }
+    return $merged_str;
+}
+
+my @all_comments;
+my %comments;
+
+sub unify_comments () {
+    foreach my $fname (keys %blurbs) {
+	if ($blurbs{$fname} =~ /\b(gpl|lgpl|gnu\s+(library\s+|lesser\s+|)general\s+public\s+license)\b/si) {
+	    # looks like GNU GPL/LGPL
+	    $gpl_found = 1;
+	}
+	if (defined ($comments{$blurbs{$fname}})) {
+	    $comments{$blurbs{$fname}} = $comments{$blurbs{$fname}} .
+		", $fname";
+	} else {
+	    $comments{$blurbs{$fname}} = $fname;
+	}
+    }
+    @all_comments = (keys %comments);
+}
+
+sub smart_merge_comments () {
+    my @temp_all_comments = @all_comments;
+    @all_comments = ();
+
+    my $i = 0;
+    while ($i <= $#temp_all_comments) {
+	my $did_merge = 0;
+	my $c1 = $temp_all_comments[$i];
+	for (my $j = $i+1; $j <= $#temp_all_comments; $j++) {
+	    my $c2 = $temp_all_comments[$j];
+	    my $c1_lc = line_count ($c1);
+	    my $c2_lc = line_count ($c2);
+	    my $c12_merged = merge_comments ($c1, $c2);
+	    my $c12_lc = line_count ($c12_merged);
+	    # if more than 10 lines or more than 25% saved then
+	    # keep the merged comments
+	    my $diff_lc = $c1_lc + $c2_lc - $c12_lc;
+	    if (($diff_lc > 10) or ($c12_lc <= ($c1_lc + $c2_lc)*0.75)) {
+		if ($debug > 0) {
+		    print "DEBUG*****************************************\n";
+		    print "$c1\n";
+		    print "++++++++++++++++++++++++++++++++++++++++++++++\n";
+		    print "$c2\n";
+		    print "==============================================\n";
+		    print "$c12_merged\n";
+		    print "*****************************************DEBUG\n";
+		}
+		$temp_all_comments[$j] = $c12_merged;
+		$did_merge = 1;
+		$comments{$c12_merged} = "$comments{$c1}, $comments{$c2}";
+		last;
+	    }
+	}
+	if (not $did_merge) {
+	    push (@all_comments, $c1);
+	}
+	$i++;
+    }
+}
+
+sub print_comments () {
+    if ($gpl_found and $gpl_disclaimer) {
+	print << "__EOF"
+For the avoidance of doubt, except that if any license choice other
+than GPL or LGPL is available it will apply instead, Sun elects to
+use only the General Public License version 2 (GPLv2) at this time
+for any software where a choice of GPL license versions is made
+available with the language indicating that GPLv2 or any later
+version may be used, or where a choice of which version of the GPL
+is applied is otherwise unspecified.
+
+--------------------------------------------------------------------
+
+__EOF
+    }
+    foreach my $comment (@all_comments) {
+	print "$comments{$comment}:\n";
+	print $comment;
+	print "\n\n" .
+	    "--------------------------------------------------------------------" .
+	    "\n\n";
+    }
+}
+
+sub main() {
+    my $srcdir;
+
+    process_options ();
+
+    if (not @dirs) {
+	usage();
+	exit (1);
+    }
+
+    foreach my $srcdir (@dirs) {
+	if ($srcdir =~ /^\./) {
+	    $srcdir = getcwd();
+	}
+	extract_comments ($srcdir);
+    }
+
+    unify_comments ();
+    if (not $dumb_mode) {
+	smart_merge_comments ();
+    }
+
+    print_comments ();
+
+    if ($print_omitted and @files_omitted) {
+	print "\nThe following files were not checked:\n\n";
+	foreach my $fname (@files_omitted) {
+	    print "    $fname\n";
+	}
+    }
+}
+
+main();
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/specs/libevent14.spec	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,75 @@
+#
+# spec file for package: libevent14
+#
+# Copyright 2010 Guido Berhoerster.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+
+%define owner gber
+
+%include Solaris.inc
+%include oi-extra.inc
+
+Name:           libevent14
+Summary:        Library Providing an Event Handling API
+Version:        1.4.13
+License:        BSD3c
+Url:            http://monkey.org/~provos/libevent/
+Source:         http://monkey.org/~provos/libevent-%{version}-stable.tar.gz
+Group:          System/Libraries
+Distribution:   OpenIndiana
+Vendor:         OpenIndiana Community
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+SUNW_Basedir:   %{_basedir}
+SUNW_Copyright: %{name}.copyright
+
+%include default-depend.inc
+
+# OpenSolaris IPS Package Manifest Fields
+Meta(info.upstream):            Nick Mathewson <[email protected]> and Niels Provos <[email protected]>
+Meta(info.maintainer):          Guido Berhoerster <[email protected]>
+Meta(info.repository_url):      git://levent.git.sourceforge.net/levent/libevent
+
+%description
+The libevent library provides a mechanism to execute a function when a specific
+event on a file descriptor occurs or after a given time has passed.
+
+%prep
+%setup -q -n libevent-%{version}-stable
+
+%build
+CPUS=$(psrinfo | awk '$2=="on-line"{cpus++}END{print (cpus==0)?1:cpus}')
+export CFLAGS="%{optflags}"
+export LDFLAGS="%{_ldflags}"
+./configure \
+    --prefix=%{_prefix} \
+    --mandir=%{_mandir} \
+    --disable-static
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+rm ${RPM_BUILD_ROOT}%{_libdir}/libevent*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, bin)
+%doc README ChangeLog
+%doc %{_mandir}/man3/*
+%dir %attr (0755, root, bin) %{_prefix}
+%dir %attr (0755, root, bin) %{_bindir}
+%dir %attr (0755, root, bin) %{_libdir}
+%dir %attr (0755, root, bin) %{_includedir}
+%{_bindir}/event_rpcgen.py
+%{_includedir}/*.h
+%{_libdir}/libevent.so
+%{_libdir}/libevent_*.so*
+%{_libdir}/libevent-1.4.so.*
+
+%changelog
+* Wed Oct  6 2010 - [email protected]
+- Initial version.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/specs/tmux.spec	Mon Oct 25 22:04:53 2010 +0200
@@ -0,0 +1,85 @@
+#
+# spec file for package: tmux
+#
+# Copyright 2010 Guido Berhoerster.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+
+%define owner gber
+
+%include Solaris.inc
+%include oi-extra.inc
+
+Name:           tmux
+Summary:        Terminal multiplexer
+Version:        1.3
+License:        ISC ; BSD3c ; BSD 2-Clause
+Url:            http://tmux.sourceforge.net/
+Source:         %{sf_download}/tmux/%{name}-%{version}.tar.gz
+# owner:gber date:2010-10-06 type:bug
+# include netdb.h which defines MAXHOSTNAMELEN
+Patch1:         tmux-01-include-netdb.h.patch 
+Group:          Applications/System Utilities
+Distribution:   OpenIndiana
+Vendor:         OpenIndiana Community
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+SUNW_Basedir:   %{_basedir}
+SUNW_Copyright: %{name}.copyright
+
+%include default-depend.inc
+Requires:       libevent14
+
+BuildRequires:  libevent14
+
+# OpenSolaris IPS Package Manifest Fields
+Meta(info.upstream):            Nicholas Marriott <[email protected]>
+Meta(info.maintainer):          Guido Berhoerster <[email protected]>
+Meta(info.repository_url):      http://tmux.cvs.sourceforge.net/viewvc/tmux/tmux/
+
+%description
+tmux is a terminal multiplexer: it enables a number of terminals (or windows),
+each running a separate program, to be created, accessed, and controlled from a
+single screen. tmux may be detached from a screen and continue running in the
+background, then later reattached. tmux is intended to be a modern,
+BSD-licensed alternative to programs such as GNU screen.
+
+tmux uses a client-server model. The server holds multiple sessions and each
+window is a independent entity which may be freely linked to multiple sessions,
+moved between sessions and otherwise manipulated. Each session may be attached
+to (display and accept keyboard input from) multiple clients.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch1 -p1
+
+%build
+CPUS=$(psrinfo | awk '$2=="on-line"{cpus++}END{print (cpus==0)?1:cpus}')
+export CPPFLAGS="-I%{_includedir} -I%{_std_includedir}"
+export CFLAGS="$RPM_OPT_FLAGS"
+export LDFLAGS="$RPM_OPT_FLAGS -L%{_libdir} -R%{_libdir} -L%{_std_libdir} -R%{_std_libdir}"
+./configure
+make -j$CPUS
+
+%install
+install -d -m 755 %{buildroot}%{_bindir}
+install -m 0755 tmux %{buildroot}%{_bindir}/tmux
+install -d -m 755 %{buildroot}%{_mandir}/man1
+install -m 0644 tmux.1 %{buildroot}%{_mandir}/man1/tmux.1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, bin)
+%doc CHANGES FAQ NOTES TODO
+%doc examples/screen-keys.conf examples/t-williams.conf examples/vim-keys.conf
+%doc examples/h-boetes.conf examples/tmux.vim examples/n-marriott.conf
+%doc %{_mandir}/man1/tmux.1
+%dir %attr (0755, root, bin) %{_prefix}
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/tmux
+
+%changelog
+* Wed Oct  6 2010 - [email protected]
+- Initial version.