[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Differences between "module license" and "file license"
From: |
Bruno Haible |
Subject: |
Re: Differences between "module license" and "file license" |
Date: |
Tue, 07 Feb 2023 13:21:34 +0100 |
Bjarni Ingi Gislason wrote:
> ./check-copyright shows in the main (master) directory:
>
> Module License File License File name
> ================= ============== =====================================
> LGPLv2+ GPL lib/alignalloc.h
> LGPLv2+ GPL lib/alignalloc.c
> GPL LGPLv2+ lib/glob.c
> GPL LGPLv2+ lib/glob_internal.h
> GPL LGPLv2+ lib/glob_pattern_p.c
> GPL LGPLv2+ lib/globfree.c
> LGPLv2+ LGPLv3+ or GPLv2+ lib/uniwidth/width0.h
> LGPLv2+ LGPLv3+ or GPLv2+ lib/uniwidth/width2.h
This tabular output can be improved to look like this:
Module License File License File name
================= ================= =====================================
LGPLv2+ GPL lib/alignalloc.h
LGPLv2+ GPL lib/alignalloc.c
GPL LGPLv2+ lib/glob.c
GPL LGPLv2+ lib/glob_internal.h
GPL LGPLv2+ lib/glob_pattern_p.c
GPL LGPLv2+ lib/globfree.c
LGPLv2+ LGPLv3+ or GPLv2+ lib/uniwidth/width0.h
LGPLv2+ LGPLv3+ or GPLv2+ lib/uniwidth/width2.h
2023-02-07 Bruno Haible <bruno@clisp.org>
check-copyright: Make output prettier.
* check-copyright: Resize the second column from width 14 to width 17.
diff --git a/check-copyright b/check-copyright
index 727da142be..ee173c2595 100755
--- a/check-copyright
+++ b/check-copyright
@@ -171,10 +171,10 @@ for file in $candidates; do
done
if test "$file_license" != "$weakest_license"; then
if test $error = 0; then
- echo "Module License File License File name"
- echo "================= ==============
====================================="
+ echo "Module License File License File name"
+ echo "================= =================
====================================="
fi
- printf '%-17s %-14s %s\n' "$weakest_license" "$file_license" "$file"
+ printf '%-17s %-17s %s\n' "$weakest_license" "$file_license" "$file"
error=1
fi
done