Commit Graph

17 Commits

Author SHA1 Message Date
Raúl Marín
6446c11a7b Fix list-licenses.sh with OSX 2024-11-19 21:56:16 +01:00
Raúl Marín
97db57c09d Fix negative check 2024-10-26 00:54:33 +02:00
Alexey Milovidov
1db4dfc346 Better script 2024-10-24 03:23:17 +02:00
Alexey Milovidov
ceb125b8b0 Warn about unexpected licenses 2024-10-23 22:15:50 +02:00
Mikhail f. Shiryaev
a5331ea544
Rewrite list-licenses.sh to use array+find 2024-03-18 15:04:45 +01:00
Tim Windelschmidt
7979090333 use env to find bash 2023-09-13 18:57:11 +02:00
Alexey Milovidov
527d77bc0f system.licenses table will display hard forks 2023-07-14 21:12:12 +02:00
Alexey Milovidov
c26ca71077 Improve system.licenses table 2023-05-03 03:12:53 +02:00
Robert Schulze
ec7ef2686b
P -> D (should fix test "01276_system_licenses") 2022-06-22 09:21:12 +00:00
Robert Schulze
287a7f6e98
Let CMake check the presence of GNU utils
In list-licenses.sh it's too late ... the build simply continues if
list-licenses.sh returns with a non-zero exit code.
2022-06-21 23:49:29 +02:00
Robert Schulze
76bd2533a3
Fix system.licenses on mac
- list-licenses.sh assumed GNU versions (e.g. the "-printf" flag of
  find) but Mac ships with a non-GNU version

- this led to error

  [8677/8942] Generating StorageSystemLicenses.generated.cpp
  find: -printf: unknown primary or operator
  find: -printf: unknown primary or operator
  find: -printf: unknown primary or operator
  find: -printf: unknown primary or operator

  during build and as a result, an empty system.licenses table

- As a fix, force the GNU versions of find and grep on Mac
2022-06-21 23:22:27 +02:00
Alexey Milovidov
3ecd672007 Even more reproducible builds 2021-11-26 05:58:43 +03:00
Alexey Milovidov
b72c490efd Even more reproducible builds 2021-11-26 05:56:08 +03:00
Alexey Milovidov
a9c2f38281 Even more reproducible builds 2021-11-26 05:49:51 +03:00
Alexey Milovidov
3705dbfabc Avoid possible build dependency on locale and filesystem order 2021-04-24 23:01:07 +03:00
Azat Khuzhin
27258c8e70 utils/list-licenses/list-licenses.sh: ignore more files
- *.rtf

  They can have NULL byte, and StorageSystemLicenses.sh will warn:

      ./StorageSystemLicenses.sh: line 11: warning: command substitution: ignored null byte in input

  Found with:

      find contrib/ -type f -and '(' -iname 'LICENSE*' -or -iname 'COPYING*' -or -iname 'COPYRIGHT*' ')' -and -not -iname '*.html' | xargs grep -Pa '\x00'

- *.h
- *.cpp
- *.htm

And after verified with:

    $ find contrib/ -type f -and '(' -iname 'LICENSE*' -or -iname 'COPYING*' -or -iname 'COPYRIGHT*' ')' -and -not '(' -iname '*.html' -or -iname '*.htm' -or -iname '*.rtf' -or -name '*.cpp' -or -name '*.h' -or -iname '*.json' ')' | xargs file -b | sort -u
    ASCII text
    ASCII text, with CR line terminators
    ASCII text, with very long lines
    empty
    UTF-8 Unicode text
2020-09-09 23:56:47 +03:00
Alexey Milovidov
f1be26c541 Added a script to list licenses #2890 2020-05-11 04:53:38 +03:00