Skip to content

Commit

Permalink
add a + variant for all spdx licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Oct 6, 2012
1 parent 69a495a commit 84d576d
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fetch-licenses.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
curl "https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AqPp4y2wyQsbdGQ1V3pRRDg5NEpGVWpubzdRZ0tjUWc&single=true&gid=0&output=txt" | grep -v "New format" > licenses_changes.txt
for i in `w3m -dump -cols 1000 http://spdx.org/licenses/ | grep "License Text" | sed -e 's, *Y *License Text,,; s, *License Text,,; s,.* ,,;'`; do echo "$i $i" >> licenses_changes.txt ; done
for i in `w3m -dump -cols 1000 http://spdx.org/licenses/ | grep "License Text" | sed -e 's, *Y *License Text,,; s, *License Text,,; s,.* ,,;'`; do
echo "$i $i" >> licenses_changes.txt ;
echo "$i+ $i+" >> licenses_changes.txt ;
done
sort -o licenses_changes.txt -u licenses_changes.txt
( echo "First line" ; cat licenses_changes.txt ) > t
mv t licenses_changes.txt
Loading

0 comments on commit 84d576d

Please sign in to comment.