bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding 2009 to copyright year lists


From: Jim Meyering
Subject: adding 2009 to copyright year lists
Date: Mon, 28 Dec 2009 16:02:01 +0100

I'm going to add 2009 to most copyright year lists
that have not yet been updated this year.

I have exempted everything mentioned by config/srclist.txt
as well as all files in tests/unictype/, since they're generated.

I want wider formatting, to minimize the number of added lines
due to a wrapped "Inc.", so have used this new setting:

    export UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79

Here's how I generated the list of exempted files:

    grep -v '^#' config/srclist.txt|grep -v '^$' \
      | while read src dst; do
          test -f "$dst" && { echo "$dst"; continue; }
          test -d "$dst" || continue
          echo "$dst"/$(basename "$src")
        done > exempt
    git ls-files tests/unictype >> exempt

I'm doing it in several separate commits, but will probably squash
these all into a single commit, in order to minimize log history pollution.
In fact, I'm thinking of combining yet another change: the one from Jan 1
that adds 2010 to each Copyright line.  In that case, of course I'd
push the result only after the new year.  Would anyone prefer to keep
such administrative changes as separate commits?

----------------------------------------------------------
Preserve presumed-preferred existing style in lib/uni*/:
[Bruno, please let me know if you don't want this.]

git ls-files lib/uni*/ | xargs \
  env UPDATE_COPYRIGHT_USE_INTERVALS=1 \
  build-aux/update-copyright
----------------------------------------------------------
In any copyright line with an existing range, use that style:

git ls-files | grep -vFf exempt | xargs grep -l 'Copyright.*-[12]' \
  | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \
      build-aux/update-copyright
----------------------------------------------------------
Use year-intervals in all files from modules maintained by me:

./gnulib-tool --extract-filelist $(cd modules; grep -l eyering *) \
  |sort -u | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \
    UPDATE_COPYRIGHT_FORCE=1 build-aux/update-copyright

----------------------------------------------------------
Use the default (no range notation) for all the rest:

  git ls-files | grep -vFf exempt | xargs build-aux/update-copyright




reply via email to

[Prev in Thread] Current Thread [Next in Thread]