mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2025-04-21 12:17:26 +03:00
add title pages to the catalogs, with useful information like the creation date
This commit is contained in:
15
common/Makefile.title
Normal file
15
common/Makefile.title
Normal file
@@ -0,0 +1,15 @@
|
||||
SHELL = /bin/bash
|
||||
|
||||
COMMIT_DATE := $(shell date -u +'%F %T UTC' \
|
||||
-d "`git show --pretty=format:'%ci' | sed q`")
|
||||
GIT_HASH := $(shell git rev-parse HEAD)
|
||||
GIT_STATUS := $(shell [ -z "`git status -s -uno`" ] || echo +)
|
||||
|
||||
title.ps: ../common/title.fig
|
||||
fig2dev -L ps $< | \
|
||||
sed -e "s|<TITLE-NAME>|$(TITLE_NAME)|" \
|
||||
-e "s/<DATE>/`date -u +'%F %T UTC'`/" \
|
||||
-e "s/<HEAD-HASH>/$(GIT_HASH)$(GIT_STATUS)/" \
|
||||
-e "s/<HEAD-DATE>/$(COMMIT_DATE)/" \
|
||||
-e "s|<TITLE-FILE>|$(TITLE_FILE)|" >$@; \
|
||||
[ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@ exit 1; }
|
||||
22
common/title.fig
Normal file
22
common/title.fig
Normal file
@@ -0,0 +1,22 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5b
|
||||
Portrait
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
4 0 0 50 -1 18 36 0.0000 4 450 4350 450 1800 <TITLE-NAME>\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 285 2100 450 6075 Git repository:\001
|
||||
4 0 0 50 -1 12 18 0.0000 4 255 8100 450 6390 git://projects.qi-hardware.com/kicad-libs.git\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 225 975 450 6975 HEAD:\001
|
||||
4 0 0 50 -1 12 18 0.0000 4 165 1980 450 7245 <HEAD-HASH>\001
|
||||
4 0 0 50 -1 12 18 0.0000 4 165 1980 450 7560 <HEAD-DATE>\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 285 1860 450 8145 This catalog:\001
|
||||
4 0 0 50 -1 19 18 0.0000 4 285 2895 450 2250 (for use with KiCad)\001
|
||||
4 0 0 50 -1 14 18 0.0000 4 270 4140 450 4185 http://qi-hardware.com/\001
|
||||
4 0 0 50 -1 18 25 0.0000 4 315 2520 450 3825 Qi-Hardware\001
|
||||
4 0 0 50 -1 12 18 0.0000 4 255 8460 450 8460 http://downloads.qi-hardware.com/people/werner/\001
|
||||
4 0 0 50 -1 12 18 0.0000 4 255 2880 675 8775 tmp/<TITLE-FILE>\001
|
||||
4 0 0 50 -1 12 18 0.0000 4 165 1080 450 9090 <DATE>\001
|
||||
Reference in New Issue
Block a user