Date:2012-12-21 04:41:19 (6 years 6 months ago)
Author:Werner Almesberger
Commit:e324adc35a0c28aeabe6366bba9e36fd9653298a
Message:add title pages to the catalogs, with useful information like the creation date

Files: common/Makefile.title (1 diff)
common/title.fig (1 diff)
components/Makefile (3 diffs)
modules/Makefile (3 diffs)

Change Details

common/Makefile.title
1SHELL = /bin/bash
2
3COMMIT_DATE := $(shell date -u +'%F %T UTC' \
4    -d "`git show --pretty=format:'%ci' | sed q`")
5GIT_HASH := $(shell git rev-parse HEAD)
6GIT_STATUS := $(shell [ -z "`git status -s -uno`" ] || echo +)
7
8title.ps: ../common/title.fig
9        fig2dev -L ps $< | \
10            sed -e "s|<TITLE-NAME>|$(TITLE_NAME)|" \
11            -e "s/<DATE>/`date -u +'%F %T UTC'`/" \
12                -e "s/<HEAD-HASH>/$(GIT_HASH)$(GIT_STATUS)/" \
13                -e "s/<HEAD-DATE>/$(COMMIT_DATE)/" \
14            -e "s|<TITLE-FILE>|$(TITLE_FILE)|" >$@; \
15        [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@ exit 1; }
common/title.fig
1#FIG 3.2 Produced by xfig version 3.2.5b
2Portrait
3Center
4Metric
5A4
6100.00
7Single
8-2
91200 2
104 0 0 50 -1 18 36 0.0000 4 450 4350 450 1800 <TITLE-NAME>\001
114 0 0 50 -1 18 18 0.0000 4 285 2100 450 6075 Git repository:\001
124 0 0 50 -1 12 18 0.0000 4 255 8100 450 6390 git://projects.qi-hardware.com/kicad-libs.git\001
134 0 0 50 -1 18 18 0.0000 4 225 975 450 6975 HEAD:\001
144 0 0 50 -1 12 18 0.0000 4 165 1980 450 7245 <HEAD-HASH>\001
154 0 0 50 -1 12 18 0.0000 4 165 1980 450 7560 <HEAD-DATE>\001
164 0 0 50 -1 18 18 0.0000 4 285 1860 450 8145 This catalog:\001
174 0 0 50 -1 19 18 0.0000 4 285 2895 450 2250 (for use with KiCad)\001
184 0 0 50 -1 14 18 0.0000 4 270 4140 450 4185 http://qi-hardware.com/\001
194 0 0 50 -1 18 25 0.0000 4 315 2520 450 3825 Qi-Hardware\001
204 0 0 50 -1 12 18 0.0000 4 255 8460 450 8460 http://downloads.qi-hardware.com/people/werner/\001
214 0 0 50 -1 12 18 0.0000 4 255 2880 675 8775 tmp/<TITLE-FILE>\001
224 0 0 50 -1 12 18 0.0000 4 165 1080 450 9090 <DATE>\001
components/Makefile
44# Note that we don't have the concept of a "library of everything" so far.
55#
66
7SHELL = /bin/bash
8
79GEN = gencon.lib
810
11TITLE_NAME = SYMBOLS/COMPONENTS
12TITLE_FILE = kicad-libs-components.pdf
13
14include ../common/Makefile.title
15
916.PHONY: all sch catalog view upload missing clean spotless
1017
1118all: $(GEN)
...... 
1926DESCR-dcm: *.dcm
2027        ../scripts/dcm2desc -L . >$@ || { rm -f $@; exit 1; }
2128
22catalog catalog.pdf: HIERARCHY DESCR-dcm *.lib $(GEN)
23        genkicat -p -L . HIERARCHY DESCR-dcm >catalog.pdf || \
29catalog catalog.pdf: HIERARCHY DESCR-dcm *.lib $(GEN) title.ps
30        genkicat -p -L . -t title.ps HIERARCHY DESCR-dcm \
31          >catalog.pdf || \
2432          { rm -f catalog.pdf; exit 1; }
2533
2634view: catalog.pdf
...... 
3947# ./mkloe
4048
4149clean:
42        rm -f DESCR-dcm
50        rm -f DESCR-dcm title.ps
4351
4452spotless: clean
4553        rm -f catalog.pdf $(GEN)
modules/Makefile
1818     xtal-2 xtal-4 \
1919    zx62-b-5pa zx62m-b-5p
2020
21SHELL = /bin/bash
22
23TITLE_NAME = FOOTPRINTS/MODULES
24TITLE_FILE = kicad-libs-modules.pdf
25
26include ../common/Makefile.title
27
2128.SUFFIXES: .fpd .mod
2229.PHONY: all brd catalog view upload missing clean spotless
2330
...... 
3340brd: all modules.pro
3441        pcbnew `pwd`/modules.brd
3542
36catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd)
37        genkicat -F -p $(MODULES:%=-l %.fpd) HIERARCHY DESCR \
38          >catalog.pdf || \
43catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd) title.ps
44        genkicat -F -p $(MODULES:%=-l %.fpd) -t title.ps \
45          HIERARCHY DESCR >catalog.pdf || \
3946          { rm -f catalog.pdf; exit 1; }
4047
4148view: catalog.pdf
...... 
4956
5057clean:
5158        rm -f *~*.fpd
59        rm -f title.ps
5260
5361spotless: clean
5462        rm -f $(MODULES:%=%.mod)

Archive Download the corresponding diff file

Branches:
master



interactive