Skip to content

Commit

Permalink
finalizing update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Feb 28, 2014
1 parent 0be068d commit a20472c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
14 changes: 6 additions & 8 deletions README.md
Expand Up @@ -2,11 +2,9 @@
My component and footprint library for the [KiCad PCB design suite](http://www.kicad-pcb.org/)

## Quick start
1. Clone to wherever
2. `$ chmod +x setlibs`
3. Close KiCad and put the new libraries in a project:
* `$ ./setlibs path/to/project.pro` to completely replace the libraries in a project
* `$ ./setlibs --append path/to/project.pro` to append the libraries to a project (new libraries will have lower precedence than existing libraries)
* `$ ./setlibs --prepend path/to/project.pro` to prepend the libraries (new libraries will have higher precedence)
* `$ ./setlibs --help` to see your other options
4. Re-open KiCad and enjoy the new libraries
1. Clone to wherever (I like ~/projects) and `$ cd /path/to/kicad-lib`
2. Edit kicad.sh so that `KISYSMOD` is defined as `/path/to/kicad-lib/footprints`
3. `$ chmod +x linklibs` (if not in linux, directories in this script should be edited accordingly)
4. `$ sudo ./linklibs`
5. logout and log back in - kicad will now use these footprint files
6. for each new kicad project, select the component libraries manually using Preferences > Library in eeschema
2 changes: 1 addition & 1 deletion kicad.sh
@@ -1,5 +1,5 @@
# kicad exports
# in linux, file should be linked to /etc/profile.d/kicad.sh
# in ubuntu/debian linux, file should be linked to /etc/profile.d/kicad.sh
# mc 2/27/2014

export KIGITHUB=https://github.com/KiCad
Expand Down
14 changes: 9 additions & 5 deletions linklibs
@@ -1,12 +1,16 @@
#! /bin/bash
# mc
# 2/27/2014
#
# this script links my kicad footprint table file and environment variable definition script into the proper places
# (for linux)
# (will probably need to be run with sudo)
#
# mc
# 2/27/2014

# edit these parameters according to your system
TABLEDIR="$HOME"
SCRIPTDIR="/etc/profile.d"

# this'll do the rest
THISDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ln -svi $THISDIR/fp-lib-table $HOME/fp-lib-table
ln -svi $THISDIR/kicad.sh /etc/profile.d/kicad.sh
ln -svi $THISDIR/fp-lib-table $TABLEDIR/fp-lib-table
ln -svi $THISDIR/kicad.sh $SCRIPTDIR/kicad.sh

0 comments on commit a20472c

Please sign in to comment.