on the way to rc20 \o/
This commit is contained in:
parent
40b625dc74
commit
e8ac2515f1
2 changed files with 10 additions and 6 deletions
14
dnx.mk
14
dnx.mk
|
|
@ -2,7 +2,9 @@
|
||||||
# assumes SOLUTIONDIR already defined
|
# assumes SOLUTIONDIR already defined
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ifndef PRJNAME
|
||||||
PRJNAME := $(shell basename `pwd -P`)
|
PRJNAME := $(shell basename `pwd -P`)
|
||||||
|
endif
|
||||||
FRAMEWORK=dnx451
|
FRAMEWORK=dnx451
|
||||||
ASPNET_ENV=Development
|
ASPNET_ENV=Development
|
||||||
ASPNET_LOG_LEVEL=Debug
|
ASPNET_LOG_LEVEL=Debug
|
||||||
|
|
@ -12,6 +14,7 @@ FRAMEWORKALIAS=dnx451
|
||||||
# nuget package destination, at generation time
|
# nuget package destination, at generation time
|
||||||
BINTARGET=$(PRJNAME).dll
|
BINTARGET=$(PRJNAME).dll
|
||||||
BINTARGETPATH=bin/$(CONFIGURATION)/$(FRAMEWORKALIAS)/$(BINTARGET)
|
BINTARGETPATH=bin/$(CONFIGURATION)/$(FRAMEWORKALIAS)/$(BINTARGET)
|
||||||
|
PKGFILENAME=$(PRJNAME).$(VERSION).nupkg
|
||||||
|
|
||||||
# OBS SUBDIRS=Yavsc.Server Yavsc.Abstract Yavsc cli
|
# OBS SUBDIRS=Yavsc.Server Yavsc.Abstract Yavsc cli
|
||||||
#
|
#
|
||||||
|
|
@ -57,13 +60,14 @@ bin/output:
|
||||||
bin/output/wwwroot/version: bin/output
|
bin/output/wwwroot/version: bin/output
|
||||||
@git log -1 --pretty=format:%h > bin/output/wwwroot/version
|
@git log -1 --pretty=format:%h > bin/output/wwwroot/version
|
||||||
|
|
||||||
$(NUGETSOURCE)/$(PRJNAME)/$(PKGFILENAME): $(NUGETSOURCE)/$(PRJNAME) $(BINTARGETPATH) $(SOLUTIONDIR)/rc-num.txt
|
$(NUGETSOURCE)/$(PKGFILENAME): $(BINTARGETPATH) $(SOLUTIONDIR)/rc-num.txt
|
||||||
|
ifeq ($(git_status),0)
|
||||||
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION) -OutputDirectory $(NUGETSOURCE)/$(PRJNAME)
|
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION) -OutputDirectory $(NUGETSOURCE)/$(PRJNAME)
|
||||||
|
else
|
||||||
|
$(error Please, commit your changes before publishing your NuGet packages)
|
||||||
|
endif
|
||||||
|
|
||||||
$(NUGETSOURCE)/$(PRJNAME):
|
deploy-pkg: $(NUGETSOURCE)/$(PKGFILENAME)
|
||||||
mkdir -p $@
|
|
||||||
|
|
||||||
deploy-pkg: $(NUGETSOURCE)/$(PRJNAME)/$(PKGFILENAME)
|
|
||||||
|
|
||||||
.PHONY: rc-num.txt-check $(BINTARGETPATH)
|
.PHONY: rc-num.txt-check $(BINTARGETPATH)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
19
|
20-alpha1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue