[latex3-commits] [git/LaTeX3-latex3-l3build] main: Avoid duplication of copyright data in help() (bfa0327)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 6 09:57:58 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/bfa0327ed46ec93c268257cec0ff5fa004ea2807

>---------------------------------------------------------------

commit bfa0327ed46ec93c268257cec0ff5fa004ea2807
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Dec 6 08:57:58 2021 +0000

    Avoid duplication of copyright data in help()


>---------------------------------------------------------------

bfa0327ed46ec93c268257cec0ff5fa004ea2807
 l3build-help.lua | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/l3build-help.lua b/l3build-help.lua
index 137fc04..5696b48 100644
--- a/l3build-help.lua
+++ b/l3build-help.lua
@@ -27,12 +27,14 @@ local match  = string.match
 local rep    = string.rep
 local sort   = table.sort
 
+local copyright = "Copyright (C) 2014-2021 The LaTeX Project"
+
 function version()
   print(
     "\n" ..
     "l3build: A testing and building system for LaTeX\n\n" ..
     "Release " .. release_date .. "\n" ..
-    "Copyright (C) 2014-2021 The LaTeX Project"
+    copyright
   )
 end
 
@@ -87,5 +89,5 @@ function help()
   print("")
   print("Repository  : https://github.com/latex3/l3build")
   print("Bug tracker : https://github.com/latex3/l3build/issues")
-  print("Copyright (C) 2014-2020 The LaTeX Project")
+  print(copyright)
 end





More information about the latex3-commits mailing list.