Skip to content

Commit

Permalink
Add licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 23, 2024
1 parent 78e0872 commit 427ca21
Show file tree
Hide file tree
Showing 2 changed files with 3,979 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mklic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
CWD=`pwd`
LICENSE=svgo-license.txt
echo "# SVGO License\n" > $LICENSE
npx license-checker --json | grep 'licenseFile' | sed 's/.*licenseFile": "\(.*\)".*/\1/' | while read -r license_file; do
NAME=`echo ${license_file} | sed 's#'${CWD}'##g'`
echo "----------------------------------------------------------------------------------------------------" >> $LICENSE
echo "$NAME" >> $LICENSE
echo "----------------------------------------------------------------------------------------------------" >> $LICENSE
echo "" >> $LICENSE
cat $license_file >> $LICENSE
echo "\n" >> $LICENSE
done
Loading

0 comments on commit 427ca21

Please sign in to comment.