Skip to content

Commit

Permalink
Add GPL header to scripts
Browse files Browse the repository at this point in the history
This also adds a comment to the CONTRIBUTING guidelines
  • Loading branch information
ann0see committed Jul 12, 2023
1 parent a2658f6 commit 94f9719
Show file tree
Hide file tree
Showing 15 changed files with 358 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/autobuild/android.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

set -eu

# Some of the following version pinnings are semi-automatically checked for
Expand Down
25 changes: 25 additions & 0 deletions .github/autobuild/extractVersionChangelog.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/usr/bin/env perl
##############################################################################
# Copyright (c) 2021-2023
#
# Author(s):
# ann0see
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

use strict;
use warnings;
Expand Down
25 changes: 25 additions & 0 deletions .github/autobuild/get_build_vars.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/usr/bin/env python3
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

"""
This script is triggered from the GitHub Autobuild workflow.
It analyzes Jamulus.pro and git push details (tag vs. branch, etc.) to decide
Expand Down
25 changes: 25 additions & 0 deletions .github/autobuild/ios.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

set -eu

QT_DIR=/usr/local/opt/qt
Expand Down
25 changes: 25 additions & 0 deletions .github/autobuild/linux_deb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

set -eu

if [[ ! ${JAMULUS_BUILD_VERSION:-} =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
Expand Down
25 changes: 25 additions & 0 deletions .github/autobuild/mac.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

set -eu

QT_DIR=/usr/local/opt/qt
Expand Down
25 changes: 25 additions & 0 deletions .github/autobuild/windows.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

# Steps for generating Windows artifacts via Github Actions
# See README.md in this folder for details.
# See windows/deploy_windows.ps1 for standalone builds.
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ Please install and use [pylint](https://pylint.org/) to scan any Python code.
There is a configuration file that defines some overrides,
and note the [Editorconfig file](.editorconfig) in the project too.

### Licensing

If you add new (source code) files, please add a header with the license to the file. This clarifies how your work is licensed.

### Supported platforms

Expand Down
25 changes: 25 additions & 0 deletions tools/changelog-helper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

# Requirements: git, Github CLI (gh), jq
set -eu -o pipefail

Expand Down
29 changes: 29 additions & 0 deletions tools/check-wininstaller-translations.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2021-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

# This script compares Windows installer translations with the English version,
# checks for consistency and common mistakes.
# This is helpful for reviewing installer translation PRs.

set -eu -o pipefail

BASE_DIR=src/translation/wininstaller/
Expand Down
24 changes: 24 additions & 0 deletions tools/checkkeys.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
#!/usr/bin/perl
##############################################################################
# Copyright (c) 2021-2023
#
# Author(s):
# Tony Mountifield
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

use open qw(:std :utf8);
use XML::Simple qw(:strict);
Expand Down
25 changes: 25 additions & 0 deletions tools/create-translation-issues.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/bin/bash
##############################################################################
# Copyright (c) 2021-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

# This script opens translation issues for all languages via the Github API.
# The script is idempotent and can be run multiple times. It will not create
# multiple issues if milestone and title remain the same. Instead, it will
Expand Down
25 changes: 25 additions & 0 deletions tools/generate_json_rpc_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/usr/bin/env python3
##############################################################################
# Copyright (c) 2022-2023
#
# Author(s):
# Christian Hoffmann
# The Jamulus Development Team
#
##############################################################################
#
# 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
#
##############################################################################

"""
Generates the JSON RPC documentation from the source code and writes it into
../docs/JSON-RPC.md.
Expand Down
Loading

0 comments on commit 94f9719

Please sign in to comment.