Provide all licenses used in the project in a LICENSES folder and add SPDX license and copyright information for all files in accordance with the Reuse Software[0] specification. The copyright information is based on the file's git history, using a fairly generous definition of "non-trivial". As of the spec recommendation, the information is generally added as comments in the files themselves, except for - NEWS, README and similar top-level standard files, so that a SPDX code isn't the first thing people encounter - files that don't support comments (json) or where they'd be a bit awkward (.desktop, .service) - anything under po/, to not interfere with translation teams Those are covered by a .reuse/dep5 files, except for image assets, where separate .license files are used (It would be possible to add comments to SVG files, but I don't trust image editors to preserve them). [0] https://reuse.software/ Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/224>
25 lines
709 B
Python
Executable File
25 lines
709 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# SPDX-FileCopyrightText: 2021 Neal Gompa <ngompa@fedoraproject.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import os
|
|
import shutil
|
|
import sys
|
|
|
|
if os.environ.get('DESTDIR'):
|
|
install_root = os.environ.get('DESTDIR') + os.path.abspath(sys.argv[1])
|
|
else:
|
|
install_root = sys.argv[1]
|
|
|
|
# FIXME: Meson is unable to copy a generated target file:
|
|
# https://groups.google.com/forum/#!topic/mesonbuild/3iIoYPrN4P0
|
|
dst_dir = os.path.join(install_root, 'wayland-sessions')
|
|
if not os.path.exists(dst_dir):
|
|
os.makedirs(dst_dir)
|
|
|
|
src = os.path.join(install_root, 'xsessions', 'gnome-classic.desktop')
|
|
dst = os.path.join(dst_dir, 'gnome-classic.desktop')
|
|
shutil.copyfile(src, dst)
|