read version from file

This commit is contained in:
Alexey Kuznetsov 2012-01-25 13:57:46 +04:00
parent d63a51b9a9
commit ee9a7072bd
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
# or # or
# make install (will go to /usr/bin, /usr/lib, etc...) # make install (will go to /usr/bin, /usr/lib, etc...)
OS = $(shell uname -s) OS = $(shell uname -s)
VERSION = $(shell cat VERSION)
ifeq ($(OS), Darwin) ifeq ($(OS), Darwin)
JARSUFFIX=mac JARSUFFIX=mac
@ -215,7 +216,7 @@ mvn_install:
mvn install:install-file -Dfile=java/miniupnpc_$(JARSUFFIX).jar \ mvn install:install-file -Dfile=java/miniupnpc_$(JARSUFFIX).jar \
-DgroupId=com.github \ -DgroupId=com.github \
-DartifactId=miniupnp \ -DartifactId=miniupnp \
-Dversion=1.7-SNAPSHOT \ -Dversion=$(VERSION)-SNAPSHOT \
-Dpackaging=jar \ -Dpackaging=jar \
-Dclassifier=$(JARSUFFIX) \ -Dclassifier=$(JARSUFFIX) \
-DgeneratePom=true \ -DgeneratePom=true \