summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-07 11:35:06 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-07 11:35:06 +0200
commitdb54420a964fa65a327dda81bd5d76d828cfbc4f (patch)
tree7efaebec05c4f56fc36857b3da39255bec450399 /Makefile
parent3108aabf76830b110bb23866483eac1d1d218c74 (diff)
php-phpunit-PHPUnit: 5.3.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fa6e877..6ec9d89 100644
--- a/Makefile
+++ b/Makefile
@@ -127,8 +127,11 @@ REFLECTION: $(NAME).spec
composer:
tar xf $(shell spectool -l $(NAME).spec | head -n 1 | sed -e 's:.* ::' | sed -e 's:.*/::') --strip-components=1 '*/composer.json' && \
- mv composer.json composer-$(shell sed -n '/^Version:/{s/[^0-9]*//;p}' $(NAME).spec).json
+ cp composer.json composer-$(shell sed -n '/^Version:/{s/[^0-9]*//;p}' $(NAME).spec).json
devcomposer:
+ mv composer.json old.json && \
tar xf $(shell spectool -l $(NAME)-dev.spec | head -n 1 | sed -e 's:.*/::') --strip-components=1 '*/composer.json' && \
- mv composer.json composer-$(shell sed -n '/^Version:/{s/[^0-9]*//;p}' $(NAME)-dev.spec).json
+ mv composer.json composer-dev.json && \
+ mv old.json composer.json && \
+ cp composer-dev.json composer-$(shell sed -n '/^Version:/{s/[^0-9]*//;p}' $(NAME)-dev.spec).json