delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/12/11/13:42:09

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=date:from:to:subject:message-id:mail-followup-to:references
:mime-version:content-type:content-disposition:in-reply-to
:user-agent;
bh=rWSgxX5uYVeUYNmySNAoaPP1g+6fEZxTpgivcNlyYJU=;
b=0dm3fh0XdnHCZK/u5YT2sBmu0DbLObBnAOkjZThixR+sikKeibWAFZTj5UCDvFGpEl
vaECQDmR+0DsXkbzBUiPbhYHRTW14589ooQAcUvYmaKlCHa6ntY/vJfNXHbtfJ2HawqF
2KizrRMOt5VTdRjOo9FO0xqR9FoMKK/KHqHexvzN/iIbuuZqpyLm9DW9MU6b99F9kia2
JGy2C1PwB8JJ1DngUROj0K2IqRApjz41+skg9bTzMZpJJiJ6iQTp0f+jXuzFpHteDBfb
TJ5g+ieNaBf1vr1qh9cnwap5+AJ9GCWIdqkJbTnh9bjxgdqgdIGE4In5YIlaDrOBo0Y8
rD0A==
X-Received: by 10.152.29.130 with SMTP id k2mr72925lah.84.1386787267687;
Wed, 11 Dec 2013 10:41:07 -0800 (PST)
Date: Wed, 11 Dec 2013 22:41:03 +0400
From: Vladimir Zhbanov <vzhbanov AT gmail DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] adding footprints and schematic symbols from CVS
Message-ID: <20131211184102.GA29116@localhost.localdomain>
Mail-Followup-To: geda-user AT delorie DOT com
References: <1386442454 DOT 1786 DOT 654 DOT camel AT benjamin-hp>
<201312071920 DOT rB7JKCT0001853 AT envy DOT delorie DOT com>
<20131210131002 DOT 68AAB80459E9 AT turkos DOT aspodata DOT se>
<1386687407 DOT 1786 DOT 681 DOT camel AT benjamin-hp>
<20131210151644 DOT E723380459E9 AT turkos DOT aspodata DOT se>
<1386690289 DOT 1786 DOT 689 DOT camel AT benjamin-hp>
MIME-Version: 1.0
In-Reply-To: <1386690289.1786.689.camel@benjamin-hp>
User-Agent: Mutt/1.5.21 (2010-09-15)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

On Tue, Dec 10, 2013 at 10:44:49AM -0500, Benjamin L. Naber wrote:
> Ok,
> 
> This whole process of adding footprints is a real pain, and really
> shouldn't be that much effort involved to add a few or many symbols.
...
> > > Is there some kind of index that has to be made in order for PCB to
> > > populate the component library?

I have written a shell script populating pcb and gschem libraries from
the previously downloaded gedasymbols cvs repository. It updates the
repo, copies files to other directories and automatically updates config
files for gEDA and pcb. The directories are set using variables in the
script. Usually, I use gschem and pcb compiled from the last git sources
so I don't know if it will work for you. See the attachment.

--mP3DRpeJDSE+ciuQ
Content-Type: application/x-sh
Content-Disposition: attachment; filename="gedasymbols.sh"
Content-Transfer-Encoding: quoted-printable

#!/bin/sh=0A# CVS repository=0ACVSDIR=3D~/gedasymbols=0A# Footprints from C=
VS repository=0ACVSFPDIR=3D~/cvs/cvsfp=0A# Symbols from CVS repository=0ACV=
SSYMDIR=3D~/cvs/cvssym=0A# My own footprints=0AMYOWNFPDIR=3D~/gaf/footprint=
s=0A=0ACURDIR=3D$(pwd)=0Acd "$CVSDIR" && cvs update -C -d=0A[ -e "$CVSFPDIR=
" ] && rm -r "$CVSFPDIR"=0A[ -e "$CVSSYMDIR" ] && rm -r "$CVSSYMDIR"=0A=0A=
=0A# Populate footprints directory from CVS=0Amkdir -p "$CVSFPDIR" && cd "$=
CVSFPDIR"=0Afind "$CVSDIR/www/user/" -type d -name footprints|sed -e 's%.*/=
\([^/]*\)/footprints%\0 \1%'|xargs -I% sh -c "cp -r %"=0A# Populate symbols=
 directory from CVS=0Amkdir -p "$CVSSYMDIR" && cd "$CVSSYMDIR"=0Afind "$CVS=
DIR/www/user/" -type d -name symbols |=0A  sed -e 's%.*/\([^/]*\)/symbols%\=
0 \1%'|xargs -I% sh -c "cp -r %"=0A=0A=0A# Remove unnecessary dirs=0Afind "=
$CVSFPDIR" "$CVSSYMDIR" -type d -name CVS |xargs rm -r=0Afind "$CVSFPDIR" "=
$CVSSYMDIR" -type d |xargs rmdir 2>/dev/null=0A=0A=0A# Configure pcb=0Ased =
-i "/library-newlib/ s%.*%library-newlib =3D $MYOWNFPDIR:$CVSFPDIR%" ~/.pcb=
/preferences=0A# Configure gschem=0Agrep '(load "gafrc.cvs")' ~/.gEDA/gafrc=
 >/dev/null ||=0A  echo '(load "gafrc.cvs")' >> ~/.gEDA/gafrc=0Arm ~/.gEDA/=
gafrc.cvs=0Afind . -mindepth 1 -type d |=0A  sed -e 's%\./%%; h; s%/%_%g; H=
; g; s%\(.*\)\n\(.*\)%(component-library \"'"$CVSSYMDIR"'/\1\" \"\2\")%' >>=
 ~/.gEDA/gafrc.cvs=0A
--mP3DRpeJDSE+ciuQ--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019