File: reuse.sh

package info (click to toggle)
game-data-packager 73
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 23,420 kB
  • sloc: python: 11,086; sh: 609; makefile: 59
file content (23 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Copyright © 2022 Simon McVittie
# SPDX-License-Identifier: FSFAP

echo "TAP version 13"

if ! command -v reuse >/dev/null; then
    echo "1..0 # SKIP reuse not found"
    exit 0
fi

export LC_ALL=C.UTF-8
echo "1..1"

if [ -n "${GDP_SRCDIR+set}" ]; then
    cd "$GDP_SRCDIR"
fi

if reuse lint >&2; then
    echo "ok 1 - REUSE-compliant"
else
    echo "not ok 1 # TODO not REUSE-compliant"
fi