Project

General

Profile

Bug #12549

List files with CC0 license in LEGAL file

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

Status:
Closed
Priority:
Normal
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

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

Updated by jaruga (Jun Aruga) over 4 years ago

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

#2

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

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

Updated by nobu (Nobuyoshi Nakada) over 4 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 4 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 4 years ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
#6

Updated by hsbt (Hiroshi SHIBATA) over 4 years ago

  • Status changed from Open to Closed

Applied in changeset r55718.


  • LEGAL: added file list with CC0 license. [ruby-core:76254][Bug #12549]
#7

Updated by shyouhei (Shyouhei Urabe) 7 months ago

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

Also available in: Atom PDF