Root/common/Makefile.title

Source at commit 2c26373d24d05d991ee805d72f1da78088b04d3f created 9 years 10 days ago.
By Werner Almesberger, add EastRising OLED FPC-30 connector (symbol and footprint)
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
8.PHONY: title.ps
9
10title.ps: ../common/title.fig
11        fig2dev -L ps $< | \
12            sed -e "s|<TITLE-NAME>|$(TITLE_NAME)|" \
13            -e "s/<DATE>/`date -u +'%F %T UTC'`/" \
14                -e "s/<HEAD-HASH>/$(GIT_HASH)$(GIT_STATUS)/" \
15                -e "s/<HEAD-DATE>/$(COMMIT_DATE)/" \
16            -e "s|<TITLE-FILE>|$(TITLE_FILE)|" >$@; \
17        [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $@ exit 1; }
18

Archive Download this file

Branches:
master



interactive