Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
license: move from debian/copyright to LICENSE.txt
Create LICENSE.txt by calling devtools/update-license-file.sh which merges LICENSE.template and core/LICENSE. core/LICENSE covers the code in core/ and stays unchanged, at it has been setup with legal help. Before there has been a mechanism to update debian/copyright. Now debian/copyright is just a link to LICENSE.txt, which is formated according to https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Co-authored-by: Bruno Friedmann @bareos <89836284+bruno-at-bareos@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
2,522 additions
and
2,354 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
core/AGPL-3.0.txt | ||
core/LICENSE | ||
AGPL-3.0.txt | ||
core/README.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE.txt |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# BAREOS® - Backup Archiving REcovery Open Sourced | ||
# | ||
# Copyright (C) 2024-2024 Bareos GmbH & Co. KG | ||
# | ||
# This program is Free Software; you can redistribute it and/or | ||
# modify it under the terms of version three of the GNU Affero General Public | ||
# License as published by the Free Software Foundation and included | ||
# in the file 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 | ||
# Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero 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 -e | ||
set -u | ||
set -o pipefail | ||
|
||
YEAR=$(date +"%Y") | ||
PROJECT_SOURCE_DIR="$(dirname "$0")/.." | ||
LICENSE_TEMPLATE="${PROJECT_SOURCE_DIR}/LICENSE.template" | ||
LICENSE_FILE="${PROJECT_SOURCE_DIR}/LICENSE.txt" | ||
|
||
echo "Updating file $LICENSE_FILE from template." | ||
|
||
# replace empty lines by " .": | ||
#sed -i -z -r -e 's/\n[[:space:]]*\n /\n .\n /g' LICENSE.template | ||
|
||
# replace ${YEAR} by current year | ||
# and handle @include statements | ||
|
||
true > "${LICENSE_FILE}" | ||
sed "s/\${YEAR}/${YEAR}/g" < "${LICENSE_TEMPLATE}" | while IFS= read -r line; do | ||
if grep -q '^@include("' <<< "${line}"; then | ||
include_file=$(sed -n 's/@include("\(.*\)")/\1/p' <<< "${line}") | ||
sed -r -e 's/^[[:space:]]*$/./' -e 's/^(.*)$/ \1/' "${PROJECT_SOURCE_DIR}/${include_file}" >> "${LICENSE_FILE}" | ||
else | ||
echo "${line}" >> "${LICENSE_FILE}" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters