Skip to content

Commit

Permalink
Add GPL-3.0-or-later SPDX identifier to all scripts
Browse files Browse the repository at this point in the history
Add the SPDX license identifier GPL-3.0-or-later to the header of all
scripts without a specific license and upgrading those that are stated
as GPL-2.0 to become GPL-3.0-or-later.
  • Loading branch information
dvzrv committed Oct 29, 2021
1 parent da7f267 commit 539f097
Show file tree
Hide file tree
Showing 22 changed files with 43 additions and 88 deletions.
10 changes: 1 addition & 9 deletions arch-nspawn.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/bin/bash
# License: GNU GPLv2
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)
m4_include(lib/archroot.sh)
Expand Down
3 changes: 2 additions & 1 deletion archbuild.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)
m4_include(lib/archroot.sh)
Expand Down
3 changes: 2 additions & 1 deletion archco.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
3 changes: 2 additions & 1 deletion archrelease.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)
m4_include(lib/valid-tags.sh)
Expand Down
3 changes: 2 additions & 1 deletion bash_completion.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/hint/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

_devtools_compgen() {
local i r
Expand Down
3 changes: 2 additions & 1 deletion checkpkg.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

shopt -s extglob

Expand Down
3 changes: 2 additions & 1 deletion commitpkg.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
3 changes: 2 additions & 1 deletion crossrepomove.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
3 changes: 2 additions & 1 deletion find-libdeps.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
2 changes: 1 addition & 1 deletion finddeps.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# finddeps - find packages that depend on a given depname
#
# License: Unspecified
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
2 changes: 1 addition & 1 deletion lddd.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# lddd - find broken library links on your machine
#
# License: Unspecified
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
3 changes: 2 additions & 1 deletion lib/archroot.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/hint/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later
:

# shellcheck disable=2034
Expand Down
5 changes: 3 additions & 2 deletions lib/common.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/hint/bash
#
# This may be included with or without `set -euE`

# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

[[ -z ${_INCLUDE_COMMON_SH:-} ]] || return 0
_INCLUDE_COMMON_SH="$(set +o|grep nounset)"
Expand Down
3 changes: 2 additions & 1 deletion lib/valid-repos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/hint/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later
:

# shellcheck disable=2034
Expand Down
3 changes: 2 additions & 1 deletion lib/valid-tags.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/hint/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later
:

# shellcheck disable=2034
Expand Down
10 changes: 1 addition & 9 deletions makechrootpkg.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/bin/bash
# License: GNU GPLv2
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)
m4_include(lib/archroot.sh)
Expand Down
17 changes: 3 additions & 14 deletions makerepropkg.in
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#!/bin/bash
# makerepropkg - rebuild a package to see if it is reproducible
#
# Copyright (c) 2019 by Eli Schwartz <[email protected]>
# makerepropkg - rebuild a package to see if it is reproducible
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Copyright (c) 2019 by Eli Schwartz <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)
m4_include(lib/archroot.sh)
Expand Down
10 changes: 1 addition & 9 deletions mkarchroot.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/bin/bash
# License: GNU GPLv2
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)
m4_include(lib/archroot.sh)
Expand Down
18 changes: 3 additions & 15 deletions offload-build.in
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
#!/bin/bash
#
# offload-build - build a PKGBUILD on a remote server using makechrootpkg.
# offload-build - build a PKGBUILD on a remote server using makechrootpkg.
#
# Copyright (c) 2019 by Eli Schwartz <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Copyright (c) 2019 by Eli Schwartz <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

source /usr/share/makepkg/util/config.sh

Expand Down
3 changes: 2 additions & 1 deletion rebuildpkgs.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This script rebuilds a list of packages in order
# and reports anything that fails
Expand Down
18 changes: 3 additions & 15 deletions sogrep.in
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
#!/bin/bash
#
# sogrep - find shared library links in an Arch Linux repository.
# sogrep - find shared library links in an Arch Linux repository.
#
# Copyright (c) 2019 by Eli Schwartz <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Copyright (c) 2019 by Eli Schwartz <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/common.sh)

Expand Down
3 changes: 2 additions & 1 deletion zsh_completion.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco checkpkg sogrep offload-build makerepropkg
# License: Unspecified
#
# SPDX-License-Identifier: GPL-3.0-or-later

m4_include(lib/valid-tags.sh)
m4_include(lib/valid-repos.sh)
Expand Down

0 comments on commit 539f097

Please sign in to comment.