mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-21 22:17:41 +01:00
Replace version tag in composer.json
This commit is contained in:
parent
9ea711ad66
commit
b363af0c9e
3
Makefile
3
Makefile
@ -1,7 +1,7 @@
|
|||||||
.PHONY: help tests dist
|
.PHONY: help tests dist
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
VERSION := $(if $(TAG),$(TAG),$(BRANCH))
|
VERSION := $(if $(TAG),$(TAG),dev-$(BRANCH))
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
||||||
@ -21,6 +21,7 @@ api: ## Generates api-docs
|
|||||||
dist: ## Generates distribution
|
dist: ## Generates distribution
|
||||||
cp dist/composer* res/
|
cp dist/composer* res/
|
||||||
mv dist/composer-dist.json dist/composer.json
|
mv dist/composer-dist.json dist/composer.json
|
||||||
|
sed -i -e "s%//VERSION//%$(VERSION)%g" dist/composer.json
|
||||||
cd dist && composer install
|
cd dist && composer install
|
||||||
rm dist/composer.json
|
rm dist/composer.json
|
||||||
rm dist/composer.lock
|
rm dist/composer.lock
|
||||||
|
2
dist/composer-dist.json
vendored
2
dist/composer-dist.json
vendored
@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"jeroened/libpairtwo": "*"
|
"jeroened/libpairtwo": "//VERSION//"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev"
|
"minimum-stability": "dev"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user