delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/12/10/08:11:07

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] adding footprints and schematic symbols from CVS
In-reply-to: <201312071920.rB7JKCT0001853@envy.delorie.com>
References: <1386442454 DOT 1786 DOT 654 DOT camel AT benjamin-hp> <201312071920 DOT rB7JKCT0001853 AT envy DOT delorie DOT com>
Comments: In-reply-to DJ Delorie <dj AT delorie DOT com>
message dated "Sat, 07 Dec 2013 14:20:12 -0500."
Mime-Version: 1.0
Message-Id: <20131210131002.68AAB80459E9@turkos.aspodata.se>
Date: Tue, 10 Dec 2013 14:09:55 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
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

This is a multipart MIME message.

--==_Exmh_1386674199_32430
Content-Type: text/plain; charset="utf-8"

> PCB only supports two-level-deep directories, so you need to point it
> at *each* user's footprint subdirectory.

If you are brave you could try out the attached script.
Use it like:

$ mkdir ~/ttt
$ cd ~/ttt
$ sh ~/pcbfootprints.sh  /Net/cvs/cvs.gedasymbols.org/www/user/ cvs
$ ls -1 | head
cvs_alexander_kurz_conn_misc
cvs_alexander_kurz_crystal
cvs_alexander_kurz_din
cvs_alexander_kurz_dsub
cvs_alexander_kurz_hosiden
cvs_alexander_kurz_minidin
cvs_alexander_kurz_misc
cvs_alexander_kurz_modular
cvs_alexander_kurz_rft
cvs_alexander_kurz_sdl_semconn
$ ls cvs_alexander_kurz_conn_misc
LSA-2.fp  LSA-4.fp  LSA-8.fp
$ cd your_project_dir
$ pcb --lib-newlib ~/ttt

and you've got a nice cvs footprint browser.

Note:
 I'm using the lesstif pcb, the other one might differ
 when the cvs changes you might have to do cd ~/ttt; rm -rf *
  and rerun the pcbfootprints.sh
 when the cvs changes the footprint you have used may have
  vanished, changed, moved, etc...

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


--==_Exmh_1386674199_32430
Content-Type: text/x-sh ; name="pcbfootprints.sh"
Content-Description: pcbfootprints.sh
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="pcbfootprints.sh"

#!/bin/sh

dir=3D$1
pfx=3D$2

if [ ! "$pfx" ]
then
  echo pcbfootprints.sh
  echo \ find dirctories with footprint files
  echo \ and make them available for pcb as directory/link\'s in
  echo \ the current directory
  echo Usage:
  echo " pcbfootprints.sh root_of_file_tree prefix"
  echo Example:
  echo ' pcbfootprints.sh /Net/cvs/cvs.gedasymbols.org/www/user/ cvs'
  exit 1
fi

cd $1
c=3D`echo $dir | sed -e 's|/$||'`

list=3D`find . -type f -name \*.fp |
sed -e 's|/[^/]*$||; s/^\.\///' |
sort -u`
cd - > /dev/null
for a in $list
do
    b=3D${pfx}_`echo $a | sed -e 's|/footprints$||' |
    sed -e 's|/footprints/|/|' |
    sed -e 's|/|_|g'`
    dir=3D$c/$a
    if [ -d "$dir" ]
    then
	mkdir $b
	ln -s $dir/*.fp $b
    fi
done
--==_Exmh_1386674199_32430--


- Raw text -


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