Skip to content

Instantly share code, notes, and snippets.

@tai
Created February 24, 2015 06:23
Show Gist options
  • Select an option

  • Save tai/f3866b78b74dca413101 to your computer and use it in GitHub Desktop.

Select an option

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).
#!/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