1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
// Reconcile DEP-5 debian/copyright to licensecheck
//
// Copyright : 2023-2025 P Blackman
// License : BSD-2-clause
//
program lrc;
{$mode delphi}
{$linklib c}
Uses cmem, SysUtils, rstrings, gettext, exclude, dep5,
options, loadsourcefiles, licensechecking, compare;
begin
TranslateResourcestrings('/usr/share/lrc/i18n/%s.mo');
GetOptions;
if Option_Help then
ShowHelp
else
if Option_Version then
ShowVersions
else
if not FileExists ('debian/copyright') then
begin
Writeln (rsCff + '; debian/copyright');
Writeln;
ShowHelp;
Halt (1);
end
else
begin
if not Option_Format then
ShowVersions;
LoadSource;
if CopyRightFile then // Parse debian/copyright
begin
LoadExcludes; // Load exclusions from usr/share & debian/
LicenseCheck; // Get licenses from licensecheck
CompareLicenses; // Do the check
end
else
Halt (1);
end;
end.
|