Date:2012-12-21 02:40:09 (6 years 11 months ago)
Author:Werner Almesberger
Commit:cce90811d991ce9e69f5cf0f2febfdfab181cf91
Message:modules/: "make brd" opens pcbnew for footprint examination

The profile is automatically generated from the list of modules.
Files: modules/Makefile (2 diffs)
modules/template.pro (1 diff)
scripts/modules-pro (1 diff)

Change Details

modules/Makefile
1919    zx62-b-5pa zx62m-b-5p
2020
2121.SUFFIXES: .fpd .mod
22.PHONY: all catalog view upload missing clean spotless
22.PHONY: all brd catalog view upload missing clean spotless
2323
2424all: $(MODULES:%=%.mod)
2525
2626.fpd.mod:
2727        fped -k $< $@
2828
29modules.pro: Makefile
30        ../scripts/modules-pro template.pro $(MODULES) >$@ || \
31            { rm -f $@; exit 1; }
32
33brd: all modules.pro
34        pcbnew `pwd`/modules.brd
35
2936catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd)
3037        genkicat -F -p $(MODULES:%=-l %.fpd) HIERARCHY DESCR \
3138          >catalog.pdf || \
...... 
4552
4653spotless: clean
4754        rm -f $(MODULES:%=%.mod)
48
55        rm -f modules.pro
modules/template.pro
1update=Thu Dec 20 21:59:41 2012
2last_client=pcbnew
3[pcbnew]
4version=1
5LastNetListRead=
6PadDrlX=320
7PadDimH=600
8PadDimV=600
9BoardThickness=630
10TxtPcbV=800
11TxtPcbH=600
12TxtModV=600
13TxtModH=600
14TxtModW=120
15VEgarde=100
16DrawLar=150
17EdgeLar=150
18TxtLar=120
19MSegLar=150
20[pcbnew/libraries]
21LibDir=
22LibName1=qfn
scripts/modules-pro
1#!/bin/sh -e
2#
3# modules-pro - Merge template and list of libraries to a profile
4#
5# Copyright 2012 by Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13
14usage()
15{
16    echo "usage: $0 template.pro module-basename ..." 1>&2
17    exit 1
18}
19
20
21scan_fped()
22{
23    for n in "$@"; do
24        fped -k $n - | sed '/^\$MODULE /s///p;d' >>_tmp2
25    done
26}
27
28
29[ -r "$1" ] || usage
30sed /LibName1/Q "$1"
31shift
32
33echo "$@" | tr ' ' '\012' | sort -f | awk '{ n++; print "LibName" n "=" $0 }'

Archive Download the corresponding diff file

Branches:
master



interactive