Skip to content

Commit a43e3a0

Browse files
committed
feat: Add none as a license option
Signed-off-by: Ian Lewis <ian@ianlewis.org>
1 parent be7315c commit a43e3a0

29 files changed

Lines changed: 116 additions & 0 deletions

autogen.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Licenses:
180180
lgpl2.1: LGPL 2.1 (aliases: lgpl, lgpl2)
181181
mit: MIT
182182
mpl2.0: MPL 2.0 (aliases: mpl, mpl2)
183+
none: no license, just copyright with all rights reserved
183184
EOF
184185
}
185186

@@ -296,6 +297,9 @@ case "${LICENSE_NAME}" in
296297
mpl | mpl2 | mpl-2 | mpl2.0 | mpl-2.0)
297298
LICENSE_FILE="${SRCDIR}/licenses/mpl-2.0.txt"
298299
;;
300+
none)
301+
LICENSE_FILE="${SRCDIR}/licenses/none.txt"
302+
;;
299303
*)
300304
echo "Invalid license selected: ${LICENSE_NAME}" >&2
301305
exit 1

licenses/none.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright %YEAR% %COPYRIGHT_HOLDER%
2+
All rights reserved.

tests/testdata/none-acme-css.err

Whitespace-only changes.

tests/testdata/none-acme-css.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c "Acme Inc." -l none file.css

tests/testdata/none-acme-css.out

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright 2014 Acme Inc.
3+
*
4+
* All rights reserved.
5+
*/
6+
7+
/* TODO: High-level file comment. */
8+

tests/testdata/none-acme-dockerfile.err

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c "Acme Inc." -l none Dockerfile
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright 2014 Acme Inc.
2+
#
3+
# All rights reserved.
4+
5+
# TODO: High-level file comment.
6+

tests/testdata/none-acme-el.err

Whitespace-only changes.

tests/testdata/none-acme-el.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c "Acme Inc." -l none file.el

0 commit comments

Comments
 (0)