mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 16:25:20 +02:00
fix the version, use date for the inflash version
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
parent
d7012c2e2d
commit
ba682deebb
@ -1,8 +1,12 @@
|
|||||||
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
|
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
|
||||||
|
|
||||||
|
BUILD_BRANCH := $(shell git branch | grep ^\* | cut -d' ' -f2)
|
||||||
|
BUILD_HEAD := $(shell git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16)
|
||||||
|
BUILD_VERSION := ${BUILD_BRANCH}_${BUILD_HEAD}
|
||||||
|
|
||||||
inflash_version.h:
|
inflash_version.h:
|
||||||
echo -e '#ifndef INFLASH_VERSION' \
|
echo -e '#ifndef INFLASH_VERSION' \
|
||||||
'\n#define INFLASH_VERSION "'`svnversion`'"' \
|
'\n#define INFLASH_VERSION "20090628-1"' \
|
||||||
'\n#endif' > inflash_version.h
|
'\n#endif' > inflash_version.h
|
||||||
BUILT_SOURCES = inflash_version.h
|
BUILT_SOURCES = inflash_version.h
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user