Created
February 24, 2015 06:23
-
-
Save tai/f3866b78b74dca413101 to your computer and use it in GitHub Desktop.
Quick script to git clone all KiCad libraries (*.lib components and *.pretty footprints).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -x | |
| # Quick script to git clone all KiCad libraries (*.lib components and *.pretty footprints). | |
| curl -S 'https://github.com/KiCad?page=[1-5]' | \ | |
| (perl -lne 'print $& while s|KiCad/[^/]+.pretty||'; echo KiCad/kicad-library) | \ | |
| sort -u | while read i; do test -d ${i#KiCad/} || git clone https://github.com/$i; done | |
| for i in */.git; do (cd $i/.. && git pull); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment