git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile: get version from git
[jquery.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
45d2764
..
1e838bb
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-38,8
+38,8
@@
JQ_MIN = ${DIST_DIR}/jquery.min.js
SIZZLE_DIR = ${SRC_DIR}/sizzle
QUNIT_DIR = ${TEST_DIR}/qunit
SIZZLE_DIR = ${SRC_DIR}/sizzle
QUNIT_DIR = ${TEST_DIR}/qunit
-JQ_VER = $(shell cat version.txt)
-VER = sed "s/@VERSION/${JQ_VER}/"
+GIT_VER = $(shell git describe --tags --always --dirty)
+VER = sed "s/@VERSION/${GIT_VER}/"
DATE=$(shell git log -1 --pretty=format:%ad)
DATE=$(shell git log -1 --pretty=format:%ad)