Skip to content

Commit

Permalink
Use SPDX license expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
slewsys committed Feb 8, 2024
1 parent 6bdea60 commit 55bbfd8
Show file tree
Hide file tree
Showing 29 changed files with 161 additions and 50 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/po/Makefile.in
/po/POTFILES
/po/stamp-po
/po/*.gmo
/src/ed
/src/ed.dSYM/**
/stamp-h1
Expand Down
2 changes: 0 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Makefile.am: Top-level automake template for the ed line editor.
#
# Copyright © 1993-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with automake to create Makefile.in

gnulib_srcdir ?= /opt/src/savannah/gnulib
Expand Down
2 changes: 0 additions & 2 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Makefile.am: Doc subdirectory automake template for the ed line editor.
#
# Copyright © 1993-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with automake to create Makefile.in

PROG = ed
Expand Down
2 changes: 0 additions & 2 deletions doc/bwk/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Makefile.am: Doc/tutorial automake template for the ed line editor.
#
# Copyright © 2006-2016 Andrew L. Moore, SlewSys Research
#
# Process this file with automake to create Makefile.in.

SUFFIXES = .ps .pdf
Expand Down
20 changes: 9 additions & 11 deletions lib_bsd/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Makefile.am: Lib subdirectory automake template for the ed line editor.
#
# Copyright © 1993-2016 Andrew L. Moore, SlewSys Research
#
# Process this file with automake to create Makefile.in

# BSD getopt(3) requires optreset -- ln -sf bsd_getopt.h getopt.h
Expand All @@ -18,12 +16,12 @@ libed_a_SOURCES =
libed_a_LIBADD = $(LIBOBJS)

AM_CPPFLAGS = -I$(top_srcdir) \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/include \
-I$(top_builddir) \
-I$(top_builddir)/lib \
-I$(top_builddir)/include \
-DLOCALEDIR=\"$(localedir)\"
-I$(top_srcdir)/lib \
-I$(top_srcdir)/include \
-I$(top_builddir) \
-I$(top_builddir)/lib \
-I$(top_builddir)/include \
-DLOCALEDIR=\"$(localedir)\"

localedir = $(datadir)/locale

Expand All @@ -39,7 +37,7 @@ if WITH_INCLUDED_REGEX
noinst_HEADERS += regex.h
libed_a_SOURCES += regex.c
AM_CPPFLAGS += -DRE_ENABLE_I18N=1 \
-D__USE_GNU=1 \
-I$(top_srcdir)/regex \
-I$(top_builddir)/regex
-D__USE_GNU=1 \
-I$(top_srcdir)/regex \
-I$(top_builddir)/regex
endif WITH_INCLUDED_REGEX
9 changes: 9 additions & 0 deletions licenses/BSD-2-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright (c) <year> <owner>

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 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 HOLDER 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.
117 changes: 117 additions & 0 deletions licenses/GPL-2.0-or-later.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions licenses/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 0 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Makefile.am: Src subdirectory automake template for the ed line editor.
#
# Copyright © 1993-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with automake to create Makefile.in

bin_PROGRAMS = ed
Expand Down
2 changes: 1 addition & 1 deletion src/aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
7 changes: 2 additions & 5 deletions src/cbc.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/* cbc.c: This file contains the encryption routines for the ed line editor */
/*-
* SPDX-License-Identifier: BSD-2-Clause
/* cbc.c: This file contains the encryption routines for the ed line editor
*
* Copyright © 1993 The Regents of the University of California.
*
* Copyright © 2013, 2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include <pwd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2018 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
4 changes: 2 additions & 2 deletions src/ed.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* ed.h: Header for the ed line editor.
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
* Copyright © 1993-2024 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "config.h"
Expand Down
2 changes: 1 addition & 1 deletion src/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/glbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2023 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#ifndef lint
Expand Down
2 changes: 1 addition & 1 deletion src/page.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/re.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2022 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 1 addition & 1 deletion src/sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright © 1993-2024 Andrew L. Moore, SlewSys Research
*
* This file is part of ed.
* SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later OR MIT
*/

#include "ed.h"
Expand Down
2 changes: 0 additions & 2 deletions testsuite/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Makefile.am: Testsuite subdirectory automake template for the ed line editor.
#
# Copyright © 1993-2017 Andrew L. Moore, SlewSys Research
#
# Process this file with automake to create Makefile.in.

AUTOTEST = $(AUTOM4TE) --language=autotest
Expand Down
2 changes: 0 additions & 2 deletions testsuite/proto.err-at.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# proto.err-at.in: Autotest template for the ed testsuite.
#
# Copyright © 2005-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with autotest to create testsuite (see also Makefile.am).

AT_SETUP([Pipe: @[email protected]])
Expand Down
2 changes: 0 additions & 2 deletions testsuite/proto.fail-at.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# proto.fail-at.in: Autotest template for the ed testsuite.
#
# Copyright © 2005-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with autotest to create testsuite (see also Makefile.am).

AT_SETUP([Fail: @[email protected]])
Expand Down
2 changes: 0 additions & 2 deletions testsuite/proto.ok-at.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# proto.ok-at.in: Autotest template for the ed testsuite.
#
# Copyright © 2005-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with autotest to create testsuite (see also Makefile.am).

AT_SETUP([Script: @[email protected]])
Expand Down
2 changes: 0 additions & 2 deletions testsuite/proto.ok-mf-at.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# proto.ok-mf-at.in: Autotest template for the ed testsuite.
#
# Copyright © 2021 Andrew L. Moore, SlewSys Research
#
# Process this file with autotest to create testsuite (see also Makefile.am).

AT_SETUP([Script: @[email protected]])
Expand Down
2 changes: 0 additions & 2 deletions testsuite/proto.ok-so-at.in.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# proto.ok-so-at.in: Autotest template for the ed testsuite.
#
# Copyright © 2005-2018 Andrew L. Moore, SlewSys Research
#
# Process this file with autotest to create testsuite (see also Makefile.am).

AT_SETUP([Script: @[email protected]])
Expand Down

0 comments on commit 55bbfd8

Please sign in to comment.