- Update DOSBox Staging Team copyright span to year 2021 (DOSBox Team copyrights left untouched). - Add DOSBox Staging Team copyright line to files we extensively modified throughout 2020 (we add our copyright lines when number of non-trivially modified lines gets close to 50%). - Change "dosbox-staging team" to "DOSBox Staging Team", in line with updated branding. - Change MAME license identifiers to SPDX license identifiers. - Cleanup some excessive whitespace around copyright statements. - Do few adjustments to include order. - Add few missing copyright identifiers (GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause) as appropriate for specific file. - Move SPDX identifiers to the top in scripts for consistency with other source files. - Remove old copy of GPL2 license in italian from old translations.
28 lines
615 B
Bash
Executable file
28 lines
615 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# Copyright (C) 2020-2021 Kevin R. Croft <krcroft@gmail.com>
|
|
|
|
# This script exists only to easily run mdl (markdownlint) on all
|
|
# *.md files in the repo.
|
|
#
|
|
# You can pass additional parameters to this script itself, e.g.:
|
|
#
|
|
# ./verify-markdown.sh --verbose --json
|
|
|
|
set -euo pipefail
|
|
|
|
list_markdown_files () {
|
|
git ls-files | grep '.md$'
|
|
}
|
|
|
|
main () {
|
|
repo_root="$(git rev-parse --show-toplevel)"
|
|
mdl --version
|
|
echo "Checking files:"
|
|
list_markdown_files
|
|
list_markdown_files | xargs -L 1000 mdl --style "$repo_root/.mdl-styles" "$@"
|
|
}
|
|
|
|
>&2 main "$@"
|