Skip to content

Commit

Permalink
reuse: addheader GPL *.sh
Browse files Browse the repository at this point in the history
Add GPL copyright header to shell
scripts in the project.

Signed-off-by: Albert Esteve <[email protected]>
  • Loading branch information
aesteve-rh authored and mz-pdm committed Sep 30, 2022
1 parent 08a656c commit 5efd2ea
Show file tree
Hide file tree
Showing 25 changed files with 80 additions and 95 deletions.
3 changes: 3 additions & 0 deletions autobuild.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

set -e
set -v

Expand Down
3 changes: 3 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh -e

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

autoreconf -if

if test "x$1" = "x--system"; then
Expand Down
3 changes: 3 additions & 0 deletions build-aux/list-all-python-files
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# Lists all Python files (including the ones without '.py' extension,
# but containing a Python shebang line) in current directory.
# Please remember to run 'make' before using this script - it doesn't
Expand Down
3 changes: 3 additions & 0 deletions build-aux/make-dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

cd $(dirname $0)/..

if [ -f Makefile ]; then
Expand Down
3 changes: 3 additions & 0 deletions build-aux/pkg-version
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# tags and output versions:
# - v4.9.0 => 4.9.0 (upstream clean)
# - v4.9.0-1 => 4.9.0 (downstream clean)
Expand Down
3 changes: 3 additions & 0 deletions contrib/create-gluster-volume.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# Create replica 3 volume with arbiter.
#
# Requirements:
Expand Down
3 changes: 3 additions & 0 deletions contrib/create-vdo-brick.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# Create brick backed by vdo device.
#
# Requirements:
Expand Down
3 changes: 3 additions & 0 deletions contrib/deploy-gluster.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# Install required packages and start services.
# This must run on all gluster nodes. When done, you can create gluster
# bricks and volumes on one of the nodes.
Expand Down
3 changes: 3 additions & 0 deletions contrib/koji_build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

echo 'Please run this script from vdsm main folder'
echo '============================================'

Expand Down
3 changes: 3 additions & 0 deletions contrib/rhv_build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

echo 'Please run this script from vdsm main folder'
echo '============================================'

Expand Down
23 changes: 4 additions & 19 deletions init/vdsmd_init_common.sh.in
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
#!/bin/sh
# Copyright 2013 IBM, Inc.
# Copyright 2017-2020 Red Hat, Inc.
#
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#

# SPDX-FileCopyrightText: 2013 IBM, Inc.
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

VDSM_TOOL="@BINDIR@/vdsm-tool"
UPGRADE_LOGGING_PARAMS="--vvverbose --append --logfile=@VDSMLOGDIR@/upgrade.log"
Expand Down
22 changes: 3 additions & 19 deletions lib/vdsm/storage/protect/spmprotect.sh.in
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
#!/bin/bash
#
# Copyright 2011 Red Hat, Inc.
#
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

set +o pipefail

Expand Down
22 changes: 3 additions & 19 deletions lib/vdsm/storage/protect/spmstop.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
#!/bin/bash
#
# Copyright 2011 Red Hat, Inc.
#
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

LOGFILE="/var/log/vdsm/spm-lock.log"
KILL="/bin/kill"
Expand Down
4 changes: 4 additions & 0 deletions static/etc/cron.hourly/vdsm-logrotate
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

errors=0

#
Expand Down
3 changes: 3 additions & 0 deletions static/etc/libvirt/hooks/qemu
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

DOMAIN="$1"
EVENT="$2"
PHASE="$3"
Expand Down
22 changes: 3 additions & 19 deletions static/libexec/vdsm/vdsm-gencerts.sh.in
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
#!/bin/bash -e
#
# Copyright 2012-2019 Red Hat, Inc.
#
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

VDSM_CA="$1"
VDSM_KEY="$2"
Expand Down
4 changes: 4 additions & 0 deletions tests/check_distpkg.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh -e

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# Check that the distibution tarball does not contain generated files.

DIST=$1
Expand Down
3 changes: 3 additions & 0 deletions tests/check_rpms.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -e

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

# enable complex globs
shopt -s extglob

Expand Down
3 changes: 3 additions & 0 deletions tests/network/common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -xe

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

PROJECT=${PROJECT:-${PWD##*/}}
PROJECT_PATH="$PWD"
CONTAINER_WORKSPACE="/workspace/$PROJECT"
Expand Down
3 changes: 3 additions & 0 deletions tests/network/functional/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -xe

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

source tests/network/common.sh

IMAGE_TAG="${IMAGE_TAG:=centos-8}"
Expand Down
3 changes: 3 additions & 0 deletions tests/network/integration/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -xe

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

source tests/network/common.sh

IMAGE_TAG="${IMAGE_TAG:=centos-8}"
Expand Down
3 changes: 3 additions & 0 deletions tests/network/unit/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -xe

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

source tests/network/common.sh

IMAGE_TAG="${IMAGE_TAG:=centos-8}"
Expand Down
4 changes: 4 additions & 0 deletions tests/run_tests_local.sh.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

if [ -z "$PYTHON_EXE" ]; then
PYTHON_EXE="python3"
fi
Expand Down
4 changes: 4 additions & 0 deletions tests/storage/fake-lsblk
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

set -e

# Fake the output
Expand Down
22 changes: 3 additions & 19 deletions vdsm_log/vdsmlog.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
#!/bin/bash
#
# Copyright 2011 Red Hat, Inc.
#
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later

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

0 comments on commit 5efd2ea

Please sign in to comment.