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.
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
Hi,
I would send my patch to fix this.
Could you check it?
Thanks.
- Blocks Misc #12529: LEGAL file covering all the license information within Ruby added
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"
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. :)
- Assignee set to hsbt (Hiroshi SHIBATA)
- Status changed from Open to Closed
Applied in changeset r55718.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0