#!/bin/bash
ulimit -t 5
ulimit -v 80000
export HOME=/tmp
cd /tmp
# read the config
. /etc/pcblib.cgi.conf
CGI=$CGI_static
# import the lib
. $pcb_rnd_util/cgi_common.sh
find_fp()
{
awk -v "fp=$QS_fp" -v "fpdir=$fpdir" '
BEGIN {
fp=tolower(fp)
}
($1 == "S") {
n=tolower($2)
sub("^.*/", "", n)
sub(".fp$", "", n)
sub(".ele$", "", n)
if (n == fp) {
print fpdir $2
exit
}
}
' < $sdir/cache
}
list_fps()
{
find $fpdir | awk -v "fpdir=$fpdir" -v "CGI=$CGI" '
/.svn/ { next }
/parametric/ { next }
{
name=$0
sub(fpdir, "", name)
if (!(name ~ "/"))
next
dir=name
fn=name
sub("/.*", "", dir)
sub("^[^/]*/", "", fn)
vfn = fn
sub(".fp$", "", vfn)
LLEN[dir] += length(vfn)
vfn = "" vfn ""
if (LLEN[dir] > 8) {
LLEN[dir] = 0
sep = "
"
}
else
sep = " "
if (DIR[dir] != "")
DIR[dir] = DIR[dir] sep vfn
else
DIR[dir] = vfn
}
END {
print "
" n print " |
---|
" DIR[n] print " |
An outburst while looking for a powerjack connector footprint in the stock library: "What on earth is an MSP430F1121 footprint and why do I need it in the default library?!" |
pcblibThe default library in pcb-rnd was called the "pcblib" (lib and newlib are already used by vanilla pcb) and is called footprint/ from 3.0.0. This footprint library content consists of parametric (generated) footprints and static footprints ("file elements"). This page queries static footprints. The goal of this lib is to ship a minimalistic library of the real essential parts, targeting small projects and hobbysts. This assumes users can grow their own library by downloading footprints from various online sources (e.g. gedasymbols) or draw their own as needed. Thus instead of trying to be a complete collection of footprints ever drawn, it tries to collect the common base so that it is likely that 90% of users will use 90% of the footprints of this lib in their projects. |
List of static footprints
|
" echo "" echo " | " echo " | "
echo "" echo "$fptext" echo "" echo " Downloads:"
echo " |