Root/common/Makefile.title

Source at commit 0958a385d0dd19e3b021b161836f487d3a2f9085 created 3 years 7 months ago.
By Werner Almesberger, modules/qfn.fpd, HIERARCHY (QFN20-UEEE): "MO-248 variation UEEE", for FSA2866
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