Skip to content

Commit 5efd2ea

Browse files
aesteve-rhmz-pdm
authored andcommitted
reuse: addheader GPL *.sh
Add GPL copyright header to shell scripts in the project. Signed-off-by: Albert Esteve <[email protected]>
1 parent 08a656c commit 5efd2ea

25 files changed

+80
-95
lines changed

autobuild.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
set -e
47
set -v
58

autogen.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh -e
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
autoreconf -if
47

58
if test "x$1" = "x--system"; then

build-aux/list-all-python-files

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
# Lists all Python files (including the ones without '.py' extension,
47
# but containing a Python shebang line) in current directory.
58
# Please remember to run 'make' before using this script - it doesn't

build-aux/make-dist

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
cd $(dirname $0)/..
47

58
if [ -f Makefile ]; then

build-aux/pkg-version

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
# tags and output versions:
47
# - v4.9.0 => 4.9.0 (upstream clean)
58
# - v4.9.0-1 => 4.9.0 (downstream clean)

contrib/create-gluster-volume.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Red Hat, Inc.
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
14
# Create replica 3 volume with arbiter.
25
#
36
# Requirements:

contrib/create-vdo-brick.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Red Hat, Inc.
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
14
# Create brick backed by vdo device.
25
#
36
# Requirements:

contrib/deploy-gluster.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Red Hat, Inc.
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
14
# Install required packages and start services.
25
# This must run on all gluster nodes. When done, you can create gluster
36
# bricks and volumes on one of the nodes.

contrib/koji_build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Red Hat, Inc.
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
14
echo 'Please run this script from vdsm main folder'
25
echo '============================================'
36

contrib/rhv_build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Red Hat, Inc.
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
14
echo 'Please run this script from vdsm main folder'
25
echo '============================================'
36

init/vdsmd_init_common.sh.in

+4-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
#!/bin/sh
2-
# Copyright 2013 IBM, Inc.
3-
# Copyright 2017-2020 Red Hat, Inc.
4-
#
5-
# This program is free software; you can redistribute it and/or modify
6-
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation; either version 2 of the License, or
8-
# (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18-
#
19-
# Refer to the README and COPYING files for full details of the license
20-
#
2+
3+
# SPDX-FileCopyrightText: 2013 IBM, Inc.
4+
# SPDX-FileCopyrightText: Red Hat, Inc.
5+
# SPDX-License-Identifier: GPL-2.0-or-later
216

227
VDSM_TOOL="@BINDIR@/vdsm-tool"
238
UPGRADE_LOGGING_PARAMS="--vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log"

lib/vdsm/storage/protect/spmprotect.sh.in

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
#!/bin/bash
2-
#
3-
# Copyright 2011 Red Hat, Inc.
4-
#
5-
# This program is free software; you can redistribute it and/or modify
6-
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation; either version 2 of the License, or
8-
# (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18-
#
19-
# Refer to the README and COPYING files for full details of the license
20-
#
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
215

226
set +o pipefail
237

lib/vdsm/storage/protect/spmstop.sh

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
#!/bin/bash
2-
#
3-
# Copyright 2011 Red Hat, Inc.
4-
#
5-
# This program is free software; you can redistribute it and/or modify
6-
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation; either version 2 of the License, or
8-
# (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18-
#
19-
# Refer to the README and COPYING files for full details of the license
20-
#
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
215

226
LOGFILE="/var/log/vdsm/spm-lock.log"
237
KILL="/bin/kill"

static/etc/cron.hourly/vdsm-logrotate

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
26
errors=0
37

48
#

static/etc/libvirt/hooks/qemu

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
DOMAIN="$1"
47
EVENT="$2"
58
PHASE="$3"

static/libexec/vdsm/vdsm-gencerts.sh.in

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
#!/bin/bash -e
2-
#
3-
# Copyright 2012-2019 Red Hat, Inc.
4-
#
5-
# This program is free software; you can redistribute it and/or modify
6-
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation; either version 2 of the License, or
8-
# (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18-
#
19-
# Refer to the README and COPYING files for full details of the license
20-
#
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
215

226
VDSM_CA="$1"
237
VDSM_KEY="$2"

tests/check_distpkg.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh -e
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
26
# Check that the distibution tarball does not contain generated files.
37

48
DIST=$1

tests/check_rpms.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -e
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
# enable complex globs
47
shopt -s extglob
58

tests/network/common.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -xe
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
PROJECT=${PROJECT:-${PWD##*/}}
47
PROJECT_PATH="$PWD"
58
CONTAINER_WORKSPACE="/workspace/$PROJECT"

tests/network/functional/run-tests.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -xe
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
source tests/network/common.sh
47

58
IMAGE_TAG="${IMAGE_TAG:=centos-8}"

tests/network/integration/run-tests.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -xe
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
source tests/network/common.sh
47

58
IMAGE_TAG="${IMAGE_TAG:=centos-8}"

tests/network/unit/run-tests.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -xe
22

3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
36
source tests/network/common.sh
47

58
IMAGE_TAG="${IMAGE_TAG:=centos-8}"

tests/run_tests_local.sh.in

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
26
if [ -z "$PYTHON_EXE" ]; then
37
PYTHON_EXE="python3"
48
fi

tests/storage/fake-lsblk

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
26
set -e
37

48
# Fake the output

vdsm_log/vdsmlog.sh

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
#!/bin/bash
2-
#
3-
# Copyright 2011 Red Hat, Inc.
4-
#
5-
# This program is free software; you can redistribute it and/or modify
6-
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation; either version 2 of the License, or
8-
# (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18-
#
19-
# Refer to the README and COPYING files for full details of the license
20-
#
2+
3+
# SPDX-FileCopyrightText: Red Hat, Inc.
4+
# SPDX-License-Identifier: GPL-2.0-or-later
215

226
ssh $1 "cat /var/log/vdsm/vdsm.log" | source-highlight -f esc --style-file=vdsmlog.style --lang-def=vdsmlog.lang | less -R
237

0 commit comments

Comments
 (0)