No commit before creating dist

This commit is contained in:
Jeroen De Meerleer 2019-09-28 00:26:51 +02:00
parent ec74c0940e
commit 9ea711ad66
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -19,9 +19,6 @@ api: ## Generates api-docs
VERSIONTAG=$(VERSION) doxygen VERSIONTAG=$(VERSION) doxygen
dist: ## Generates distribution dist: ## Generates distribution
touch .libpairtwo-dist
git add .libpairtwo-dist
git commit -m "Commit before release"
cp dist/composer* res/ cp dist/composer* res/
mv dist/composer-dist.json dist/composer.json mv dist/composer-dist.json dist/composer.json
cd dist && composer install cd dist && composer install
@ -32,7 +29,7 @@ dist: ## Generates distribution
mkdir -p dist/doc mkdir -p dist/doc
cp -r doc/api dist/doc cp -r doc/api dist/doc
cd dist && zip -r ../libpairtwo-$(VERSION)-dist.zip * cd dist && zip -r ../libpairtwo-$(VERSION)-dist.zip *
git reset --hard HEAD^ git reset --hard HEAD
mv res/composer* dist/ mv res/composer* dist/
clean: clean-dist clean-dev clean: clean-dist clean-dev