mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-21 22:17:41 +01:00
BUGFIX: Distributions could be created from a branch other than master
This commit is contained in:
parent
25c91c5242
commit
27d57dcb3d
@ -12,6 +12,7 @@
|
||||
* BUGFIX: `Tournament::calculateMutualResult()` returned NULL if result was invalid
|
||||
* BUGFIX: `Tournament::calculateBaumbach()` treated bye as won
|
||||
* BUGFIX: `Tournament::calculateAverageRating()` returned NaN if no games were played
|
||||
* BUGFIX: Distributions could be created from a branch other than master
|
||||
|
||||
## v1.1.2 (Release: 21-jun-2019)
|
||||
* ENHANCEMENT: Added update section to dist/readme.md
|
||||
|
8
Makefile
8
Makefile
@ -1,7 +1,7 @@
|
||||
.PHONY: help tests dist
|
||||
.DEFAULT_GOAL := help
|
||||
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
VERSION := $(if $(TAG),$(TAG),$(BRANCH))
|
||||
VERSION := $(if $(TAG),$(TAG),dev-$(BRANCH))
|
||||
|
||||
help:
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
||||
@ -19,11 +19,9 @@ api: ## Generates api-docs
|
||||
VERSIONTAG=$(VERSION) doxygen
|
||||
|
||||
dist: ## Generates distribution
|
||||
touch .libpairtwo-dist
|
||||
git add .libpairtwo-dist
|
||||
git commit -m "Commit before release"
|
||||
cp dist/composer* res/
|
||||
mv dist/composer-dist.json dist/composer.json
|
||||
sed -i -e "s%//VERSION//%$(VERSION)%g" dist/composer.json
|
||||
cd dist && composer install
|
||||
rm dist/composer.json
|
||||
rm dist/composer.lock
|
||||
@ -32,7 +30,7 @@ dist: ## Generates distribution
|
||||
mkdir -p dist/doc
|
||||
cp -r doc/api dist/doc
|
||||
cd dist && zip -r ../libpairtwo-$(VERSION)-dist.zip *
|
||||
git reset --hard HEAD^
|
||||
git reset --hard HEAD
|
||||
mv res/composer* dist/
|
||||
|
||||
clean: clean-dist clean-dev
|
||||
|
2
dist/composer-dist.json
vendored
2
dist/composer-dist.json
vendored
@ -6,7 +6,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"jeroened/libpairtwo": "*"
|
||||
"jeroened/libpairtwo": "//VERSION//"
|
||||
},
|
||||
"minimum-stability": "dev"
|
||||
}
|
Loading…
Reference in New Issue
Block a user