Root/common/Makefile.title

Source at commit 38cb8de06d5581730bc545f65f5f9a4c2de00dfb created 6 years 2 months ago.
By Werner Almesberger, components/: add Freescale Kinetis KL25 in 48 pin package
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