Project

General

Profile

Actions

Bug #12549

closed

List files with CC0 license in LEGAL file

Added by duerst (Martin Dürst) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:76254]

Description

From https://bugs.ruby-lang.org/issues/12529:

Additional files with CC0 (Public Domain license)

find -name "*.[ch]" -o -name "*.src" \
  | xargs grep -ri 'public[ -]domain' \
  | awk -F ':' '{ print $1 }' \
  | sort | uniq

Below files are not included within the LEGAL file.

ext/date/date_strftime.c
ext/sdbm/_sdbm.c
ext/sdbm/sdbm.h
include/ruby/st.h
missing/acosh.c
strftime.c

Files

LEGAL-public-domain.patch (1.05 KB) LEGAL-public-domain.patch jaruga (Jun Aruga), 07/04/2016 08:39 PM

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #16820: LEGAL is out of syncClosedActions
Blocks Ruby master - Misc #12529: LEGAL file covering all the license information within RubyClosedhsbt (Hiroshi SHIBATA)Actions

Updated by jaruga (Jun Aruga) over 8 years ago

Hi,
I would send my patch to fix this.
Could you check it?
Thanks.

Actions #2

Updated by duerst (Martin Dürst) over 8 years ago

  • Blocks Misc #12529: LEGAL file covering all the license information within Ruby added

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

And missing/strerror.c.

You can use find -exec {} + and grep -l, or grep -r --include.

find . \( -name "*.[ch]" -o -name "*.src" \) -exec grep -li 'public[ -]domain' {} +
grep -lri 'public[ -]domain' --include="*.[ch]" --include="*.src"
git --no-pager grep -l -i 'public[ -]domain' -- "*.[ch]" "*.src"

Updated by jaruga (Jun Aruga) over 8 years ago

And missing/strerror.c.

You can use find -exec {} + and grep -l, or grep -r --include.

Yes, its file is included too. Thanks, I missed it. and the grep options looks better than "sort | uniq". I will take a note of it. :)

Updated by duerst (Martin Dürst) over 8 years ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
Actions #6

Updated by hsbt (Hiroshi SHIBATA) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r55718.


Actions #7

Updated by shyouhei (Shyouhei Urabe) over 4 years ago

  • Related to Bug #16820: LEGAL is out of sync added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0