mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
I'm now taking another small step towards extricating this build system from the long-dead AT&T AST universe. This commit modifies/reduces the tool called proto. AT&T used proto for two purposes: 1. To convert ANSI C code to a form compatible with ancient (pre-ANSI) K&R C compilers using extremely complex macro voodo. It was similarly capable of translating to C++. Theoretically, this entire code base should compile on anything from a 1980s K&R C compiler to a modern C++ compiler. In practice, given the massive amount of bit rot we inherited, I am 99.9% sure that this has been broken for many years. 2. To automagically insert license comments into source files based on an extremely complicated license database system. (In all-too-typical AT&T fashion, this second function of proto is completely unrelated to the first.) Function 2 has now been removed because, unlike the AT&T legal department, I don't think it's worth going to unspeakably extreme lengths to avoid maintaining license information in source code files by hand. In the process, proto.c was cleaned up to look halfway like actual C code, but it's still processed code: most macros have been expanded to their numeric value, all comments were stripped, etc. So don't expect to understand this code. The actual source code is in these two directories in the ast-open-history repo: https://github.com/ksh93/ast-open-history/tree/master/src/cmd/proto https://github.com/ksh93/ast-open-history/tree/master/src/lib/libpp Meanwhile, nobody wants to compile ksh with a pre-ANSI K&R C compiler in 2021 -- and there's no good reason to be compatible with C++ because standard C compilers are universally available. So, proto will go away when I manage to figure out how to pry it loose from the innards of this build system. src/lib/libast/port/astlicense.c: - Removed. This is al the license handling code that was incorporated in proto.c in stripped form. It was not used anywhere else, and the environment where it was useful is gone. src/cmd/INIT/proto.c: - Cleanup to make this halfway maintainable: indentation, huge blocks of empty lines, #line directives, etc. - Delete all the code corresponding to astlicense.c. This was actually easy as it was in a discrete block. - proto(), pppopen(): Remove 'license'/'notice' and 'options' arguments. - main(): Remove processing of -l (license) and -o (license options) flags. **/Mamfile: - Update all the proto invocations to remove the -l and -o flags. bin/package, src/cmd/INIT/package.sh: - Delete the 'copyright' command, which used the -l and -o options to tell proto to extract copyright information from *.lic/*.def files in lib/package. COPYRIGHT: - Added. This has the information from 'bin/package copyright', with the copyright years corrected to plausible values as the AST code used the current year (2021) for all of them. It adds ksh 93u+m copyright and contributor information at the top as well. (Yes, some of the lines in the old non-AT&T copyright notices are clipped. This is the actual output of the 'bin/package copyright' command as generated by 'proto' in the AST distribution. For all that extreme complexity, they couldn't even reproduce the notices correctly. But it's officially sanctioned by AT&T in exactly this form, so there you have it.) lib/package/**: - Removed. All these files are now obsolete and redundant.
200 lines
14 KiB
Text
200 lines
14 KiB
Text
ksh 93u+m general copyright notice
|
|
|
|
########################################################################
|
|
# #
|
|
# The KornShell 93u+m distribution #
|
|
# Copyright (c) 2021 Contributors to ksh 93u+m #
|
|
# <https://github.com/ksh93/ksh> #
|
|
# Derived from AT&T's ast package (see below) #
|
|
# Licensed under the Eclipse Public License, Version 1.0 #
|
|
# #
|
|
# A copy of the License is available at #
|
|
# http://www.eclipse.org/org/documents/epl-v10.html #
|
|
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
|
|
# #
|
|
# CONTRIBUTORS #
|
|
# #
|
|
# Martijn Dekker <martijn@inlv.org> #
|
|
# Johnothan King <johnothanking@protonmail.com> #
|
|
# hyenias <58673227+hyenias@users.noreply.github.com> #
|
|
# Anuradha Weeraman <anuradha@weeraman.com> #
|
|
# Chase <nicetrynsa@protonmail.ch> #
|
|
# Govind Kamat <govind_kamat@yahoo.com> #
|
|
# Harald van Dijk <harald@gigawatt.nl> #
|
|
# Lev Kujawski <int21h@mailbox.org> #
|
|
# Marc Wilson <posguy99@gmail.com> #
|
|
# #
|
|
########################################################################
|
|
|
|
ast package general copyright notice
|
|
|
|
########################################################################
|
|
# #
|
|
# This software is part of the ast package #
|
|
# Copyright (c) 1986-2014 AT&T Intellectual Property #
|
|
# and is licensed under the #
|
|
# Eclipse Public License, Version 1.0 #
|
|
# by AT&T Intellectual Property #
|
|
# #
|
|
# A copy of the License is available at #
|
|
# http://www.eclipse.org/org/documents/epl-v10.html #
|
|
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
|
|
# #
|
|
# Information and Software Systems Research #
|
|
# AT&T Research #
|
|
# Florham Park NJ #
|
|
# #
|
|
# CONTRIBUTORS #
|
|
# #
|
|
# Glenn Fowler <gsf@research.att.com> #
|
|
# David Korn <dgk@research.att.com> #
|
|
# Phong Vo <kpv@research.att.com> #
|
|
# Adam Edgar <aedgar@research.att.com> #
|
|
# Adam Buchsbaum <alb@adambuchsbaum.com> #
|
|
# Aman Shaikh <ashaikh@research.att.com> #
|
|
# Bala Krishnamurthy <bala@research.att.com> #
|
|
# Brian Russell <brussell@research.att.com> #
|
|
# Robin Chen <chen@research.att.com> #
|
|
# Don Caldwell <dfwc@research.att.com> #
|
|
# Lefty Koutsofios <ek@research.att.com> #
|
|
# Bob Gruber <bob.gruber@gmail.com> #
|
|
# Jia Wang <jiawang@research.att.com> #
|
|
# Jeff Fellin <jkf@research.att.com> #
|
|
# Jeff Korn <@google.com> #
|
|
# Kathleen Fisher <kfisher@research.att.com> #
|
|
# Ken Church <@microsoft.com> #
|
|
# Brian Kernigham <bwk@research.bell-labs.com> #
|
|
# Dennis Ritchie <dmr@research.bell-labs.com> #
|
|
# Doug McIlroy <doug@research.bell-labs.com> #
|
|
# Eduardo Krell <ekrell@adexus.cl> #
|
|
# John Snyder <jjs@adexus.cl> #
|
|
# Herman Rao <rao@fareastone.att.com.tw> #
|
|
# AST users mailgroup <ast-users@research.att.com> #
|
|
# AST developers mailgroup <ast-developers@research.att.com> #
|
|
# #
|
|
########################################################################
|
|
|
|
bsd package general copyright notice
|
|
|
|
########################################################################
|
|
# #
|
|
# This software is part of the BSD package #
|
|
# Copyright (c) 1979-2012 The Regents of the University of California #
|
|
# #
|
|
# 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 Regents of the University of California#
|
|
# 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 COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. #
|
|
# #
|
|
# 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. #
|
|
# #
|
|
# CONTRIBUTORS #
|
|
# #
|
|
# Bill Joy #
|
|
# #
|
|
########################################################################
|
|
|
|
zlib package general copyright notice
|
|
|
|
########################################################################
|
|
# #
|
|
# This software is part of the zlib package #
|
|
# Copyright (c) 1995-2012 Jean-loup Gailly and Mark Adler #
|
|
# #
|
|
# This software is provided 'as-is', without any express or implied #
|
|
# warranty. In no event will the authors be held liable for any #
|
|
# damages arising from the use of this software. #
|
|
# #
|
|
# Permission is granted to anyone to use this software for any #
|
|
# purpose, including commercial applications, and to alter it and #
|
|
# redistribute it freely, subject to the following restrictions: #
|
|
# #
|
|
# 1. The origin of this software must not be misrepresented; #
|
|
# you must not claim that you wrote the original software. If #
|
|
# you use this software in a product, an acknowledgment in the #
|
|
# product documentation would be appreciated but is not #
|
|
# required. #
|
|
# #
|
|
# 2. Altered source versions must be plainly marked as such, #
|
|
# and must not be misrepresented as being the original #
|
|
# software. #
|
|
# #
|
|
# 3. This notice may not be removed or altered from any source #
|
|
# distribution. #
|
|
# #
|
|
# This software is provided "as-is", without any express or implied #
|
|
# warranty. In no event will the authors be held liable for any damages#
|
|
# arising from the use of this software. #
|
|
# #
|
|
# Permission is granted to anyone to use this software for any purpose,#
|
|
# including commercial applications, and to alter it and redistribute i#
|
|
# freely, subject to the following restrictions: #
|
|
# #
|
|
# 1. The origin of this software must not be misrepresented; you must n#
|
|
# claim that you wrote the original software. If you use this softwa#
|
|
# in a product, an acknowledgment in the product documentation would#
|
|
# be appreciated but is not required. #
|
|
# #
|
|
# 2. Altered source versions must be plainly marked as such, and must n#
|
|
# be misrepresented as being the original software. #
|
|
# #
|
|
# 3. This notice may not be removed or altered from any source #
|
|
# distribution. #
|
|
# #
|
|
# CONTRIBUTORS #
|
|
# #
|
|
# Jean-loup Gailly #
|
|
# Mark Adler #
|
|
# #
|
|
########################################################################
|